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