Top Description Constructors Methods
org.springframework.aot.hint.annotation

public Class SimpleReflectiveProcessor

extends Object
implements ReflectiveProcessor
Class Inheritance
All Implemented Interfaces
org.springframework.aot.hint.annotation.ReflectiveProcessor
Imports
java.lang.reflect.AnnotatedElement, .Constructor, .Field, .Method, org.springframework.aot.hint.ExecutableMode, .ReflectionHints

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.
Author
Stephane Nicoll
Since
6.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
registerConstructorHint(ReflectionHints
the reflection hints instance to use
hints
,
Constructor<?>
the constructor to process
constructor
)

Register ReflectionHints against the specified Constructor.

protected void
registerFieldHint(ReflectionHints
the reflection hints instance to use
hints
,
Field
the field to process
field
)

Register ReflectionHints against the specified Field.

protected void
registerMethodHint(ReflectionHints
the reflection hints instance to use
hints
,
Method
the method to process
method
)

Register ReflectionHints against the specified Method.

public void
registerReflectionHints(ReflectionHints
the reflection hints instance to use
hints
,
AnnotatedElement
the element to process
element
)

Implements org.springframework.aot.hint.annotation.ReflectiveProcessor.registerReflectionHints.

Register ReflectionHints against the specified AnnotatedElement.
protected void
registerTypeHint(ReflectionHints
the reflection hints instance to use
hints
,
Class<?>
the class to process
type
)

Register ReflectionHints against the specified Class.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SimpleReflectiveProcessorback to summary
public SimpleReflectiveProcessor()

Method Detail

registerConstructorHintback to summary
protected void registerConstructorHint(ReflectionHints hints, Constructor<?> constructor)

Register ReflectionHints against the specified Constructor.

Parameters
hints:ReflectionHints

the reflection hints instance to use

constructor:Constructor<?>

the constructor to process

registerFieldHintback to summary
protected void registerFieldHint(ReflectionHints hints, Field field)

Register ReflectionHints against the specified Field.

Parameters
hints:ReflectionHints

the reflection hints instance to use

field:Field

the field to process

registerMethodHintback to summary
protected void registerMethodHint(ReflectionHints hints, Method method)

Register ReflectionHints against the specified Method.

Parameters
hints:ReflectionHints

the reflection hints instance to use

method:Method

the method to process

registerReflectionHintsback to summary
public void registerReflectionHints(ReflectionHints hints, AnnotatedElement element)

Implements org.springframework.aot.hint.annotation.ReflectiveProcessor.registerReflectionHints.

Doc from org.springframework.aot.hint.annotation.ReflectiveProcessor.registerReflectionHints.

Register ReflectionHints against the specified AnnotatedElement.

Parameters
hints:ReflectionHints

the reflection hints instance to use

element:AnnotatedElement

the element to process

Annotations
@Override
registerTypeHintback to summary
protected void registerTypeHint(ReflectionHints hints, Class<?> type)

Register ReflectionHints against the specified Class.

Parameters
hints:ReflectionHints

the reflection hints instance to use

type:Class<?>

the class to process