Package io.micronaut.core.io.service
Class SoftServiceLoader.StaticDefinition<S>
java.lang.Object
io.micronaut.core.io.service.SoftServiceLoader.StaticDefinition<S>
- Type Parameters:
S
- The service type
- All Implemented Interfaces:
ServiceDefinition<S>
- Enclosing class:
- SoftServiceLoader<S>
public static final class SoftServiceLoader.StaticDefinition<S>
extends Object
implements ServiceDefinition<S>
A
ServiceDefinition
implementation that uses a MethodHandles.Lookup
object to find a public constructor.-
Method Details
-
of
-
of
-
isPresent
public boolean isPresent()- Specified by:
isPresent
in interfaceServiceDefinition<S>
- Returns:
- is the service present
-
getName
- Specified by:
getName
in interfaceServiceDefinition<S>
- Returns:
- The full class name of the service
-
load
- Specified by:
load
in interfaceServiceDefinition<S>
- Returns:
- load the service
-