T
- the type of service.public static final class ServiceFinder.DefaultServiceIteratorProvider<T> extends ServiceFinder.ServiceIteratorProvider<T>
This class may utilized if a ServiceFinder.ServiceIteratorProvider
needs to
reuse the default implementation.
Constructor and Description |
---|
ServiceFinder.DefaultServiceIteratorProvider() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<java.lang.Class<T>> |
createClassIterator(java.lang.Class<T> service,
java.lang.String serviceName,
java.lang.ClassLoader loader,
boolean ignoreOnClassNotFound)
Iterate over provider classes of a service.
|
java.util.Iterator<T> |
createIterator(java.lang.Class<T> service,
java.lang.String serviceName,
java.lang.ClassLoader loader,
boolean ignoreOnClassNotFound)
Iterate over provider instances of a service.
|
public ServiceFinder.DefaultServiceIteratorProvider()
public java.util.Iterator<T> createIterator(java.lang.Class<T> service, java.lang.String serviceName, java.lang.ClassLoader loader, boolean ignoreOnClassNotFound)
ServiceFinder.ServiceIteratorProvider
createIterator
in class ServiceFinder.ServiceIteratorProvider<T>
service
- the service class.serviceName
- the service name.loader
- the class loader to utilize when loading provider
classes.public java.util.Iterator<java.lang.Class<T>> createClassIterator(java.lang.Class<T> service, java.lang.String serviceName, java.lang.ClassLoader loader, boolean ignoreOnClassNotFound)
ServiceFinder.ServiceIteratorProvider
createClassIterator
in class ServiceFinder.ServiceIteratorProvider<T>
service
- the service class.serviceName
- the service name.loader
- the class loader to utilize when loading provider
classes.Copyright © 2016 Oracle Corporation. All Rights Reserved.