Example usage for Java java.util ServiceLoader fields, constructors, methods, implement or subclass
The text is from its open source code.
void | forEach(Consumer super T> action) Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception. |
Iterator | iterator() Returns an iterator to lazily load and instantiate the available providers of this loader's service. |
ServiceLoader | load(Class Creates a new service loader for the given service type, using the current thread's java.lang.Thread#getContextClassLoader context class loader . |
ServiceLoader | load(Class Creates a new service loader for the given service. |
ServiceLoader | load(ModuleLayer layer, Class Creates a new service loader for the given service type to load service providers from modules in the given module layer and its ancestors. |
ServiceLoader | loadInstalled(Class Creates a new service loader for the given service type, using the ClassLoader#getPlatformClassLoader() platform class loader . |
void | reload() Clear this loader's provider cache so that all providers will be reloaded. |
Spliterator | spliterator() Creates a Spliterator over the elements described by this Iterable . |
String | toString() Returns a string describing this service. |