Uses of Class
org.springframework.aot.hint.ReflectionHints
Packages that use ReflectionHints
Package
Description
Support for registering the need for reflection, resources, java
serialization and proxies at runtime.
Annotation support for runtime hints.
-
Uses of ReflectionHints in org.springframework.aot.hint
Methods in org.springframework.aot.hint that return ReflectionHintsModifier and TypeMethodDescriptionRuntimeHints.jni()Provide access to JNI-based hints.RuntimeHints.reflection()Provide access to reflection-based hints.ReflectionHints.registerConstructor(Constructor<?> constructor, ExecutableMode mode) Register the need for reflection on the specifiedConstructor, using the specifiedExecutableMode.ReflectionHints.registerField(Field field) Register the need for reflective field access on the specifiedField.ReflectionHints.registerForInterfaces(Class<?> type, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for all the interfaces implemented by the given type and its parent classes, ignoring the common Java language interfaces.ReflectionHints.registerJavaSerialization(Class<?> type) Register the need for Java Serialization on the specified type.ReflectionHints.registerLambda(Class<?> declaringClass, Consumer<LambdaHint.Builder> lambdaHint) Register aLambdaHint.ReflectionHints.registerLambda(TypeReference declaringClass, Consumer<LambdaHint.Builder> lambdaHint) Register aLambdaHint.ReflectionHints.registerMethod(Method method, ExecutableMode mode) Register the need for reflection on the specifiedMethod, using the specifiedExecutableMode.ReflectionHints.registerType(Class<?> type, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the specified type.ReflectionHints.registerType(Class<?> type, MemberCategory... memberCategories) Register or customize reflection hints for the specified type using the specifiedMemberCategories.ReflectionHints.registerType(TypeReference type, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the type defined by the specifiedTypeReference.ReflectionHints.registerType(TypeReference type, MemberCategory... memberCategories) Register or customize reflection hints for the specified type using the specifiedMemberCategories.ReflectionHints.registerTypeIfPresent(@Nullable ClassLoader classLoader, String typeName, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the specified type if it is available using the specifiedClassLoader.ReflectionHints.registerTypeIfPresent(@Nullable ClassLoader classLoader, String typeName, MemberCategory... memberCategories) Register or customize reflection hints for the specified type if it is available using the specifiedClassLoader.ReflectionHints.registerTypes(Iterable<TypeReference> types, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the types defined by the specified list oftype references.Methods in org.springframework.aot.hint with parameters of type ReflectionHintsModifier and TypeMethodDescriptionvoidBindingReflectionHintsRegistrar.registerReflectionHints(ReflectionHints hints, Type... types) Register the necessary reflection hints to bind the specified types. -
Uses of ReflectionHints in org.springframework.aot.hint.annotation
Methods in org.springframework.aot.hint.annotation with parameters of type ReflectionHintsModifier and TypeMethodDescriptionprotected voidSimpleReflectiveProcessor.registerConstructorHint(ReflectionHints hints, Constructor<?> constructor) RegisterReflectionHintsagainst the specifiedConstructor.protected voidSimpleReflectiveProcessor.registerFieldHint(ReflectionHints hints, Field field) RegisterReflectionHintsagainst the specifiedField.protected voidSimpleReflectiveProcessor.registerMethodHint(ReflectionHints hints, Method method) RegisterReflectionHintsagainst the specifiedMethod.voidReflectiveProcessor.registerReflectionHints(ReflectionHints hints, AnnotatedElement element) RegisterReflectionHintsagainst the specifiedAnnotatedElement.protected voidRegisterReflectionReflectiveProcessor.registerReflectionHints(ReflectionHints hints, Class<?> target, MemberCategory[] memberCategories) final voidRegisterReflectionReflectiveProcessor.registerReflectionHints(ReflectionHints hints, AnnotatedElement element) protected voidRegisterReflectionReflectiveProcessor.registerReflectionHints(ReflectionHints hints, RegisterReflectionReflectiveProcessor.ReflectionRegistration registration) voidSimpleReflectiveProcessor.registerReflectionHints(ReflectionHints hints, AnnotatedElement element) protected voidSimpleReflectiveProcessor.registerTypeHint(ReflectionHints hints, Class<?> type) RegisterReflectionHintsagainst the specifiedClass.