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
Iterator over discovered SPI type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the nextResourcein the iteration.abstract <S extends T>
ResourceClass<S> Returns the next SPI Class in the iteration.Returns the next resource name in the iteration.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ResourceNameIterator
hasNext
-
Constructor Details
-
ResourceClassIterator
public ResourceClassIterator()
-
-
Method Details
-
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
Returns the nextResourcein the iteration.- Specified by:
nextResourcein classResourceIterator- Returns:
- The next resource in the iteration
-
nextResourceName
Returns the next resource name in the iteration.- Specified by:
nextResourceNamein interfaceResourceNameIterator- Overrides:
nextResourceNamein classResourceIterator- Returns:
- The next resource name in the iteration
-