| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <T> Iterable | callServiceLoader(final MethodHandles.
|
| pack-priv static <T> Stream | loadClassloaderServices(final Class<T> serviceType, final MethodHandles.
|
| public static < The service type. T> Stream | Returns: A stream of service instances.The class of the service. serviceType, final MethodHandles.The calling class data. lookupRetrieves the available services from the caller's classloader. |
| public static < The service type. T> Stream | Returns: A stream of service instances.The class of the service. serviceType, final MethodHandles.The calling class data. lookup,If true the thread context classloader will also be used. useTccl)Retrieves the available services from the caller's classloader and possibly the thread context classloader. |
| pack-priv static <T> Stream | loadServices(final Class<T> serviceType, final MethodHandles.
|
| MAX_BROKEN_SERVICES | back to summary |
|---|---|
| private static final int MAX_BROKEN_SERVICES | |
| ServiceLoaderUtil | back to summary |
|---|---|
| private ServiceLoaderUtil() | |
| callServiceLoader | back to summary |
|---|---|
| pack-priv static <T> Iterable | |
| loadClassloaderServices | back to summary |
|---|---|
| pack-priv static <T> Stream | |
| loadServices | back to summary |
|---|---|
| public static <T> Stream Retrieves the available services from the caller's classloader. Broken services will be ignored.
| |
| loadServices | back to summary |
|---|---|
| public static <T> Stream Retrieves the available services from the caller's classloader and possibly the thread context classloader. Broken services will be ignored.
| |
| loadServices | back to summary |
|---|---|
| pack-priv static <T> Stream | |
| Modifier and Type | Field and Description |
|---|---|
| private final Logger | |
| private final Iterator | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | ServiceLoaderSpliterator(final Class<S> serviceType, final MethodHandles.
|
| Modifier and Type | Method and Description |
|---|---|
| public int | characteristics()
Implements java. Returns a set of characteristics of this Spliterator and its elements. |
| public long | estimateSize()
Implements java. Returns an estimate of the number of elements that would be
encountered by a |
| public boolean | tryAdvance(final Consumer<? super S>
The action whose operation is performed at-most once action)Implements java. If a remaining element exists: performs the given action on it,
returning |
| public Spliterator | trySplit()
Implements java. If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator. |
| logger | back to summary |
|---|---|
| private final Logger logger | |
| serviceIterator | back to summary |
|---|---|
| private final Iterator<S> serviceIterator | |
| serviceName | back to summary |
|---|---|
| private final String serviceName | |
| ServiceLoaderSpliterator | back to summary |
|---|---|
| public ServiceLoaderSpliterator(final Class<S> serviceType, final MethodHandles. | |
| characteristics | back to summary |
|---|---|
| public int characteristics() Implements java. Doc from java. Returns a set of characteristics of this Spliterator and its
elements. The result is represented as ORed values from If a Spliterator reports an inconsistent set of characteristics (either those returned from a single invocation or across multiple invocations), no guarantees can be made about any computation using this Spliterator.
| |
| estimateSize | back to summary |
|---|---|
| public long estimateSize() Implements java. Doc from java. Returns an estimate of the number of elements that would be
encountered by a If this Spliterator is
| |
| tryAdvance | back to summary |
|---|---|
| public boolean tryAdvance(final Consumer<? super S> action) Implements java. Doc from java. If a remaining element exists: performs the given action on it,
returning Subsequent behavior of a spliterator is unspecified if the action throws an exception. | |
| trySplit | back to summary |
|---|---|
| public Spliterator Implements java. Doc from java. If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator. If this Spliterator is Unless this Spliterator covers an infinite number of elements,
repeated calls to
This method may return
| |