Package org.springframework.context.aot
Class BindingReflectionHintsRegistrar
java.lang.Object
org.springframework.context.aot.BindingReflectionHintsRegistrar
Register the necessary reflection hints so that the specified type can be
bound at runtime. Fields, constructors and property methods are registered,
except for a set of types like those in the
java.
package where just
the type is registered. Types are discovered transitively and generic types
are registered as well.- Since:
- 6.0
- Author:
- Sebastien Deleuze
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerReflectionHints
(ReflectionHints hints, Type... types) Register the necessary reflection hints to bind the specified types.protected boolean
shouldRegisterMembers
(Class<?> type) Return whether the members of the type should be registered transitively.
-
Constructor Details
-
BindingReflectionHintsRegistrar
public BindingReflectionHintsRegistrar()
-
-
Method Details
-
registerReflectionHints
Register the necessary reflection hints to bind the specified types.- Parameters:
hints
- the hints instance to usetypes
- the types to bind
-
shouldRegisterMembers
Return whether the members of the type should be registered transitively.- Parameters:
type
- the type to evaluate- Returns:
true
if the members of the type should be registered transitively
-