E
- The service to loadpublic class ServiceLoaderIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
ServiceLoader
mechanism.Modifier and Type | Field and Description |
---|---|
private E |
nextServiceLoader |
private java.lang.Class<E> |
service |
private java.util.Iterator<E> |
serviceLoaderIterator |
Constructor and Description |
---|
ServiceLoaderIterator(java.lang.Class<E> service) |
ServiceLoaderIterator(java.lang.Class<E> service,
java.lang.ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
private boolean |
getNextServiceLoader() |
boolean |
hasNext() |
E |
next() |
void |
remove() |
private E nextServiceLoader
private final java.lang.Class<E> service
private final java.util.Iterator<E> serviceLoaderIterator
public ServiceLoaderIterator(java.lang.Class<E> service)
public ServiceLoaderIterator(java.lang.Class<E> service, java.lang.ClassLoader classLoader)