Package org.apache.commons.discovery
Class ResourceClassIterator<T>
- java.lang.Object
-
- org.apache.commons.discovery.ResourceIterator
-
- org.apache.commons.discovery.ResourceClassIterator<T>
-
- Type Parameters:
T
- The SPI type
- All Implemented Interfaces:
ResourceNameIterator
public abstract class ResourceClassIterator<T> extends ResourceIterator
Iterator over discovered SPI type.
-
-
Constructor Summary
Constructors Constructor Description ResourceClassIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Resource
nextResource()
Returns the nextResource
in the iteration.abstract <S extends T>
ResourceClass<S>nextResourceClass()
Returns the next SPI Class in the iteration.java.lang.String
nextResourceName()
Returns the next resource name in the iteration.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.commons.discovery.ResourceNameIterator
hasNext
-
-
-
-
Method Detail
-
nextResourceClass
public abstract <S extends T> ResourceClass<S> nextResourceClass()
Returns the next SPI Class in the iteration.- Type Parameters:
S
- Any type extends T- Returns:
- The next SPI Class in the iteration
-
nextResource
public Resource nextResource()
Returns the nextResource
in the iteration.- Specified by:
nextResource
in classResourceIterator
- Returns:
- The next resource in the iteration
-
nextResourceName
public java.lang.String nextResourceName()
Returns the next resource name in the iteration.- Specified by:
nextResourceName
in interfaceResourceNameIterator
- Overrides:
nextResourceName
in classResourceIterator
- Returns:
- The next resource name in the iteration
-
-