Package io.micronaut.core.io.service
@NullMarked
package io.micronaut.core.io.service
Micronaut core i/o service classes.
- Since:
- 1.0
- Author:
- graemerocher
-
ClassDescriptionThe loader of Micronaut services under META-INF/micronaut/.A service that may or may not be present on the classpath.Variation of
ServiceLoaderthat allows soft loading and conditional loading of META-INF/services classes.Static optimizations for service loaders.Service collector for loading services of the given type.AServiceDefinitionimplementation that creates instances using the same instantiation strategy asSoftServiceLoader.instantiate(Class): it first attempts to invoke a no-argument constructor via aMethodHandles.Lookupmethod handle, and if that fails due to access restrictions or similar conditions, it falls back to reflective instantiation using.invalid reference
java.lang.Class#getDeclaredConstructor()Service loader that usesSoftServiceLoader.StaticDefinition.