Uses of Class
org.springframework.aot.hint.ReflectionHints
Package
Description
Support for registering the need for reflection, resources, java
serialization and proxies at runtime.
-
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
.