public static final class ServiceFinder.DefaultServiceIteratorProvider extends ServiceFinder.ServiceIteratorProvider
This class may utilized if a ServiceFinder.ServiceIteratorProvider needs to
reuse the default implementation.
| Constructor and Description |
|---|
DefaultServiceIteratorProvider() |
| Modifier and Type | Method and Description |
|---|---|
<T> 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.
|
<T> 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 <T> java.util.Iterator<T> createIterator(java.lang.Class<T> service,
java.lang.String serviceName,
java.lang.ClassLoader loader,
boolean ignoreOnClassNotFound)
ServiceFinder.ServiceIteratorProvidercreateIterator in class ServiceFinder.ServiceIteratorProviderT - the type of the service.service - the service class.serviceName - the service name.loader - the class loader to utilize when loading provider
classes.ignoreOnClassNotFound - if true ignore an instance if the
corresponding provider class if cannot be found,
otherwise throw a ClassNotFoundException.public <T> java.util.Iterator<java.lang.Class<T>> createClassIterator(java.lang.Class<T> service,
java.lang.String serviceName,
java.lang.ClassLoader loader,
boolean ignoreOnClassNotFound)
ServiceFinder.ServiceIteratorProvidercreateClassIterator in class ServiceFinder.ServiceIteratorProviderT - the type of the service.service - the service class.serviceName - the service name.loader - the class loader to utilize when loading provider
classes.ignoreOnClassNotFound - if true ignore the provider class if
cannot be found,
otherwise throw a ClassNotFoundException.Copyright © 2012–2025 Oracle Corporation. All rights reserved.