Class NativeConfigurationRegistry.ReflectionConfiguration
- java.lang.Object
-
- org.springframework.aot.context.bootstrap.generator.infrastructure.nativex.NativeConfigurationRegistry.ReflectionConfiguration
-
- Enclosing class:
- NativeConfigurationRegistry
public static final class NativeConfigurationRegistry.ReflectionConfiguration extends java.lang.Object
Configure the need for runtime reflection metadata on classes, methods, and fields.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NativeConfigurationRegistry.ReflectionConfiguration
addExecutable(java.lang.reflect.Executable executable)
Register the specifiedmethod or constructor
for invocation and metadata query access.NativeConfigurationRegistry.ReflectionConfiguration
addField(java.lang.reflect.Field field)
Register the specifiedfield
.NativeConfigurationRegistry.ReflectionConfiguration
addQueriedExecutable(java.lang.reflect.Executable executable)
Register the specifiedmethod or constructor
for metadata query access only.GeneratedCodeNativeReflectionEntry.Builder
forGeneratedType(com.squareup.javapoet.ClassName className)
Return theGeneratedCodeNativeReflectionEntry.Builder
to further describe the specifiedClassName
.DefaultNativeReflectionEntry.Builder
forType(java.lang.Class<?> type)
Return theDefaultNativeReflectionEntry.Builder
to further describe the specified type.java.util.stream.Stream<GeneratedCodeNativeReflectionEntry>
generatedCodeEntries()
Return the generated codeentries
of this registry.java.util.stream.Stream<DefaultNativeReflectionEntry>
reflectionEntries()
Return theentries
of this registry.java.util.List<org.springframework.nativex.domain.reflect.ClassDescriptor>
toClassDescriptors()
Return theentries
of this registry.
-
-
-
Method Detail
-
addExecutable
public NativeConfigurationRegistry.ReflectionConfiguration addExecutable(java.lang.reflect.Executable executable)
Register the specifiedmethod or constructor
for invocation and metadata query access.- Parameters:
executable
- the executable to register- Returns:
- this for method chaining
-
addQueriedExecutable
public NativeConfigurationRegistry.ReflectionConfiguration addQueriedExecutable(java.lang.reflect.Executable executable)
Register the specifiedmethod or constructor
for metadata query access only.- Parameters:
executable
- the executable to register- Returns:
- this for method chaining
-
addField
public NativeConfigurationRegistry.ReflectionConfiguration addField(java.lang.reflect.Field field)
Register the specifiedfield
.- Parameters:
field
- the field to register- Returns:
- this for method chaining
-
forType
public DefaultNativeReflectionEntry.Builder forType(java.lang.Class<?> type)
Return theDefaultNativeReflectionEntry.Builder
to further describe the specified type.- Parameters:
type
- a type to provide runtime reflection for- Returns:
- a builder to further describe the need for runtime reflection
-
forGeneratedType
public GeneratedCodeNativeReflectionEntry.Builder forGeneratedType(com.squareup.javapoet.ClassName className)
Return theGeneratedCodeNativeReflectionEntry.Builder
to further describe the specifiedClassName
.- Parameters:
className
- a generated type to provide runtime reflection for- Returns:
- a builder to further describe the need for runtime reflection
-
reflectionEntries
public java.util.stream.Stream<DefaultNativeReflectionEntry> reflectionEntries()
Return theentries
of this registry.- Returns:
- the entries in the registry
-
generatedCodeEntries
public java.util.stream.Stream<GeneratedCodeNativeReflectionEntry> generatedCodeEntries()
Return the generated codeentries
of this registry.- Returns:
- the entries in the registry for generated code
-
toClassDescriptors
public java.util.List<org.springframework.nativex.domain.reflect.ClassDescriptor> toClassDescriptors()
Return theentries
of this registry.- Returns:
- the classes entries in the registry, as
ClassDescriptor
instances
-
-