Class ServiceLoaderIterator<E>
- java.lang.Object
-
- org.apache.commons.compress.utils.ServiceLoaderIterator<E>
-
- Type Parameters:
E
- The service to load
- All Implemented Interfaces:
Iterator<E>
public class ServiceLoaderIterator<E> extends Object implements Iterator<E>
Iterates all services for a given class through the standardServiceLoader
mechanism.- Since:
- 1.13
-
-
Constructor Summary
Constructors Constructor Description ServiceLoaderIterator(Class<E> service)
ServiceLoaderIterator(Class<E> service, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
E
next()
void
remove()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
ServiceLoaderIterator
public ServiceLoaderIterator(Class<E> service, ClassLoader classLoader)
-
-