private static void |
ServiceFinder.fail(java.lang.String serviceName,
java.lang.String msg) |
|
private static void |
ServiceFinder.fail(java.lang.String serviceName,
java.lang.String msg,
java.lang.Throwable cause) |
|
private static void |
ServiceFinder.fail(java.lang.String serviceName,
java.net.URL u,
int line,
java.lang.String msg) |
|
static <T> ServiceFinder<T> |
ServiceFinder.find(java.lang.Class<T> service) |
Locates and incrementally instantiates the available providers of a
given service using the context class loader.
|
static <T> ServiceFinder<T> |
ServiceFinder.find(java.lang.Class<T> service,
boolean ignoreOnClassNotFound) |
Locates and incrementally instantiates the available providers of a
given service using the context class loader.
|
static <T> ServiceFinder<T> |
ServiceFinder.find(java.lang.Class<T> service,
java.lang.ClassLoader loader) |
Locates and incrementally instantiates the available providers of a
given service using the given class loader.
|
static <T> ServiceFinder<T> |
ServiceFinder.find(java.lang.Class<T> service,
java.lang.ClassLoader loader,
boolean ignoreOnClassNotFound) |
Locates and incrementally instantiates the available providers of a
given service using the given class loader.
|
static ServiceFinder<?> |
ServiceFinder.find(java.lang.String serviceName) |
Locates and incrementally instantiates the available classes of a given
service file using the context class loader.
|
private void |
ServiceFinder.LazyObjectIterator.handleClassNotFoundException() |
|
boolean |
ServiceFinder.AbstractLazyIterator.hasNext() |
|
boolean |
ServiceFinder.LazyObjectIterator.hasNext() |
|
private static java.util.Iterator<java.lang.String> |
ServiceFinder.parse(java.lang.String serviceName,
java.net.URL u,
java.util.Set<java.lang.String> returned) |
Parse the content of the given URL as a provider-configuration file.
|
private static int |
ServiceFinder.parseLine(java.lang.String serviceName,
java.net.URL u,
java.io.BufferedReader r,
int lc,
java.util.List<java.lang.String> names,
java.util.Set<java.lang.String> returned) |
Parse a single line from the given configuration file, adding the name
on the line to both the names list and the returned set iff the name is
not already a member of the returned set.
|
T[] |
ServiceFinder.toArray() |
Returns discovered objects all at once.
|
java.lang.Class<T>[] |
ServiceFinder.toClassArray() |
Returns discovered classes all at once.
|