Package io.micronaut.aot.std.sourcegen
Class AbstractStaticServiceLoaderSourceGenerator
java.lang.Object
io.micronaut.aot.core.codegen.AbstractCodeGenerator
io.micronaut.aot.std.sourcegen.AbstractStaticServiceLoaderSourceGenerator
- All Implemented Interfaces:
AOTCodeGenerator
- Direct Known Subclasses:
JitStaticServiceLoaderSourceGenerator
,NativeStaticServiceLoaderSourceGenerator
Base class for generation of service loader classes. Because service loading
has a very different behavior in JIT (regular JVM) mode and native mode, we
have dedicated implementations for both (see subclasses).
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generate
(@NonNull AOTContext context) protected abstract void
generateFindAllMethod
(Stream<Class<?>> serviceClasses, String serviceName, Class<?> serviceType, com.squareup.javapoet.TypeSpec.Builder factory) Methods inherited from class io.micronaut.aot.core.codegen.AbstractCodeGenerator
simpleNameOf, staticMethod, staticMethodBuilder
-
Field Details
-
SERVICE_LOADING_CATEGORY
- See Also:
-
DESCRIPTION
- See Also:
-
SERVICE_TYPES
- See Also:
-
REJECTED_CLASSES
- See Also:
-
FORCE_INCLUDE
- See Also:
-
DEFAULT_SERVICE_TYPES
- See Also:
-
DEFAULT_SERVICE_TYPES_LIST
-
context
-
-
Constructor Details
-
AbstractStaticServiceLoaderSourceGenerator
public AbstractStaticServiceLoaderSourceGenerator()
-
-
Method Details
-
generate
-
generateFindAllMethod
-