类 BindingReflectionHintsRegistrar
java.lang.Object
cn.taketoday.aot.hint.BindingReflectionHintsRegistrar
Register the necessary reflection hints so that the specified type can be
bound at runtime. Fields, constructors, properties and record components
are registered, except for a set of types like those in the
java.
package where just the type is registered. Types are discovered transitively
on properties and record components, and generic types are registered as well.- 从以下版本开始:
- 4.0
- 作者:
- Sebastien Deleuze, Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private voidcollectReferencedTypes(Set<Class<?>> types, ResolvableType resolvableType) private voidforEachJacksonAnnotation(AnnotatedElement element, Consumer<MergedAnnotation<Annotation>> action) private voidregisterHintsForClassAttributes(ReflectionHints hints, MergedAnnotation<Annotation> annotation) private voidregisterJacksonHints(ReflectionHints hints, Class<?> clazz) private voidregisterPropertyHints(ReflectionHints hints, Set<Type> seen, Method method, int parameterIndex) private voidregisterRecordHints(ReflectionHints hints, Set<Type> seen, Method method) voidregisterReflectionHints(ReflectionHints hints, Type... types) Register the necessary reflection hints to bind the specified types.private voidregisterReflectionHints(ReflectionHints hints, Set<Type> seen, Type type) private booleanshouldSkipMembers(Class<?> type) private booleanshouldSkipType(Class<?> type)
-
字段详细资料
-
JACKSON_ANNOTATION
- 另请参阅:
-
jacksonAnnotationPresent
private static final boolean jacksonAnnotationPresent
-
-
构造器详细资料
-
BindingReflectionHintsRegistrar
public BindingReflectionHintsRegistrar()
-
-
方法详细资料
-
registerReflectionHints
Register the necessary reflection hints to bind the specified types.- 参数:
hints- the hints instance to usetypes- the types to register
-
shouldSkipType
-
shouldSkipMembers
-
registerReflectionHints
-
registerRecordHints
-
registerPropertyHints
private void registerPropertyHints(ReflectionHints hints, Set<Type> seen, @Nullable Method method, int parameterIndex) -
collectReferencedTypes
-
registerJacksonHints
-
forEachJacksonAnnotation
private void forEachJacksonAnnotation(AnnotatedElement element, Consumer<MergedAnnotation<Annotation>> action) -
registerHintsForClassAttributes
private void registerHintsForClassAttributes(ReflectionHints hints, MergedAnnotation<Annotation> annotation)
-