Java java.util ServiceLoader fields, constructors, methods, implement or subclass

Example usage for Java java.util ServiceLoader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util ServiceLoader.

The text is from its open source code.

Method

voidforEach(Consumer action)
Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception.
Iteratoriterator()
Returns an iterator to lazily load and instantiate the available providers of this loader's service.
ServiceLoaderload(Class service)
Creates a new service loader for the given service type, using the current thread's java.lang.Thread#getContextClassLoader context class loader .
ServiceLoaderload(Class service, ClassLoader loader)
Creates a new service loader for the given service.
ServiceLoaderload(ModuleLayer layer, Class service)
Creates a new service loader for the given service type to load service providers from modules in the given module layer and its ancestors.
ServiceLoaderloadInstalled(Class service)
Creates a new service loader for the given service type, using the ClassLoader#getPlatformClassLoader() platform class loader .
voidreload()
Clear this loader's provider cache so that all providers will be reloaded.
Spliteratorspliterator()
Creates a Spliterator over the elements described by this Iterable .
StringtoString()
Returns a string describing this service.