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 Object
Configure the need for runtime reflection metadata on classes, methods, and fields.
-
-
Method Summary
-
-
-
Method Detail
-
addExecutable
public NativeConfigurationRegistry.ReflectionConfiguration addExecutable(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(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(Field field)
Register the specifiedfield
.- Parameters:
field
- the field to register- Returns:
- this for method chaining
-
forType
public DefaultNativeReflectionEntry.Builder forType(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 Stream<DefaultNativeReflectionEntry> reflectionEntries()
Return theentries
of this registry.- Returns:
- the entries in the registry
-
generatedCodeEntries
public Stream<GeneratedCodeNativeReflectionEntry> generatedCodeEntries()
Return the generated codeentries
of this registry.- Returns:
- the entries in the registry for generated code
-
toClassDescriptors
public List<org.springframework.nativex.domain.reflect.ClassDescriptor> toClassDescriptors()
Return theentries
of this registry.- Returns:
- the classes entries in the registry, as
ClassDescriptor
instances
-
-