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 constructorfor 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 constructorfor 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.Builderto 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.Builderto 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 theentriesof this registry.- Returns:
- the entries in the registry
-
generatedCodeEntries
public Stream<GeneratedCodeNativeReflectionEntry> generatedCodeEntries()
Return the generated codeentriesof this registry.- Returns:
- the entries in the registry for generated code
-
toClassDescriptors
public List<org.springframework.nativex.domain.reflect.ClassDescriptor> toClassDescriptors()
Return theentriesof this registry.- Returns:
- the classes entries in the registry, as
ClassDescriptorinstances
-
-