Uses of Class
org.springframework.aot.hint.ReflectionHints
Package
Description
Support for registering the need for reflection, resources, java
serialization and proxies at runtime.
Annotation support for runtime hints.
AOT support for application contexts.
-
Uses of ReflectionHints in org.springframework.aot.hint
Modifier and TypeMethodDescriptionRuntimeHints.reflection()
Provide access to reflection-based hints.ReflectionHints.registerConstructor
(Constructor<?> constructor) Register the need for reflection on the specifiedConstructor
, enablingExecutableMode.INVOKE
.ReflectionHints.registerConstructor
(Constructor<?> constructor, Consumer<ExecutableHint.Builder> constructorHint) Register the need for reflection on the specifiedConstructor
.ReflectionHints.registerField
(Field field) Register the need for reflection on the specifiedField
, enabling write access.ReflectionHints.registerField
(Field field, Consumer<FieldHint.Builder> fieldHint) Register the need for reflection on the specifiedField
.ReflectionHints.registerMethod
(Method method) Register the need for reflection on the specifiedMethod
, enablingExecutableMode.INVOKE
.ReflectionHints.registerMethod
(Method method, Consumer<ExecutableHint.Builder> methodHint) Register the need for reflection on the specifiedMethod
.ReflectionHints.registerType
(Class<?> type, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the specified type.ReflectionHints.registerType
(TypeReference type, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the type defined by the specifiedTypeReference
.ReflectionHints.registerTypeIfPresent
(ClassLoader classLoader, String typeName, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the specified type if it is available using the specifiedClassLoader
.ReflectionHints.registerTypes
(Iterable<TypeReference> types, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the types defined by the specified list oftype references
. -
Uses of ReflectionHints in org.springframework.aot.hint.annotation
Modifier and TypeMethodDescriptionprotected void
SimpleReflectiveProcessor.registerConstructorHint
(ReflectionHints hints, Constructor<?> constructor) RegisterReflectionHints
against the specifiedConstructor
.protected void
SimpleReflectiveProcessor.registerFieldHint
(ReflectionHints hints, Field field) RegisterReflectionHints
against the specifiedField
.protected void
SimpleReflectiveProcessor.registerMethodHint
(ReflectionHints hints, Method method) RegisterReflectionHints
against the specifiedMethod
.void
ReflectiveProcessor.registerReflectionHints
(ReflectionHints hints, AnnotatedElement element) RegisterReflectionHints
against the specifiedAnnotatedElement
.void
SimpleReflectiveProcessor.registerReflectionHints
(ReflectionHints hints, AnnotatedElement element) protected void
SimpleReflectiveProcessor.registerTypeHint
(ReflectionHints hints, Class<?> type) RegisterReflectionHints
against the specifiedClass
. -
Uses of ReflectionHints in org.springframework.context.aot
Modifier and TypeMethodDescriptionvoid
BindingReflectionHintsRegistrar.registerReflectionHints
(ReflectionHints hints, Type... types) Register the necessary reflection hints to bind the specified types.