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 Details

    • ResourceClassIterator

      public ResourceClassIterator()
  • Method Details

    • 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 next Resource in the iteration.
      Specified by:
      nextResource in class ResourceIterator
      Returns:
      The next resource in the iteration
    • nextResourceName

      public String nextResourceName()
      Returns the next resource name in the iteration.
      Specified by:
      nextResourceName in interface ResourceNameIterator
      Overrides:
      nextResourceName in class ResourceIterator
      Returns:
      The next resource name in the iteration