Class SimpleReflectiveProcessor
java.lang.Object
org.springframework.aot.hint.annotation.SimpleReflectiveProcessor
- All Implemented Interfaces:
ReflectiveProcessor
A simple
ReflectiveProcessor
implementation that registers only a
reflection hint for the annotated type. Can be sub-classed to customize
processing for a given AnnotatedElement
type.- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
registerConstructorHint
(ReflectionHints hints, Constructor<?> constructor) RegisterReflectionHints
against the specifiedConstructor
.protected void
registerFieldHint
(ReflectionHints hints, Field field) RegisterReflectionHints
against the specifiedField
.protected void
registerMethodHint
(ReflectionHints hints, Method method) RegisterReflectionHints
against the specifiedMethod
.void
registerReflectionHints
(ReflectionHints hints, AnnotatedElement element) RegisterReflectionHints
against the specifiedAnnotatedElement
.protected void
registerTypeHint
(ReflectionHints hints, Class<?> type) RegisterReflectionHints
against the specifiedClass
.
-
Constructor Details
-
SimpleReflectiveProcessor
public SimpleReflectiveProcessor()
-
-
Method Details
-
registerReflectionHints
Description copied from interface:ReflectiveProcessor
RegisterReflectionHints
against the specifiedAnnotatedElement
.- Specified by:
registerReflectionHints
in interfaceReflectiveProcessor
- Parameters:
hints
- the reflection hints instance to useelement
- the element to process
-
registerTypeHint
RegisterReflectionHints
against the specifiedClass
.- Parameters:
hints
- the reflection hints instance to usetype
- the class to process
-
registerConstructorHint
RegisterReflectionHints
against the specifiedConstructor
.- Parameters:
hints
- the reflection hints instance to useconstructor
- the constructor to process
-
registerFieldHint
RegisterReflectionHints
against the specifiedField
.- Parameters:
hints
- the reflection hints instance to usefield
- the field to process
-
registerMethodHint
RegisterReflectionHints
against the specifiedMethod
.- Parameters:
hints
- the reflection hints instance to usemethod
- the method to process
-