Uses of Class
org.springframework.aot.hint.TypeHint.Builder
Package
Description
Support for registering the need for reflection, resources, java
serialization and proxies at runtime.
-
Uses of TypeHint.Builder in org.springframework.aot.hint
Modifier and TypeMethodDescriptionTypeHint.Builder.onReachableType
(Class<?> reachableType) Make this hint conditional on the fact that the specified type is in a reachable code path from a static analysis point of view.TypeHint.Builder.onReachableType
(TypeReference reachableType) Make this hint conditional on the fact that the specified type is in a reachable code path from a static analysis point of view.TypeHint.Builder.withConstructor
(List<TypeReference> parameterTypes, ExecutableMode mode) Register the need for reflection on the constructor with the specified parameter types, using the specifiedExecutableMode
.Register the need for reflection on the field with the specified name.TypeHint.Builder.withMembers
(MemberCategory... memberCategories) Adds the specified member categories.TypeHint.Builder.withMethod
(String name, List<TypeReference> parameterTypes, ExecutableMode mode) Register the need for reflection on the method with the specified name and parameter types, using the specifiedExecutableMode
.Modifier and TypeMethodDescriptionstatic Consumer<TypeHint.Builder>
TypeHint.builtWith
(MemberCategory... memberCategories) Modifier and TypeMethodDescriptionReflectionHints.registerType
(Class<?> type, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the specified type.ReflectionHints.registerType
(TypeReference type, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the type defined by the specifiedTypeReference
.ReflectionHints.registerTypeIfPresent
(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.registerTypes
(Iterable<TypeReference> types, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the types defined by the specified list oftype references
.