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 TypeMethodDescriptionstatic TypeHint.Builder
TypeHint.of
(TypeReference type) Initialize a builder for the type defined by the specifiedTypeReference
.TypeHint.Builder.onReachableType
(TypeReference reachableType) Make this hint conditional on the fact that the specified type can be resolved.TypeHint.Builder.withConstructor
(List<TypeReference> parameterTypes, Consumer<ExecutableHint.Builder> constructorHint) Register the need for reflection on the constructor with the specified parameter types.TypeHint.Builder.withField
(String name, Consumer<FieldHint.Builder> fieldHint) 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, Consumer<ExecutableHint.Builder> methodHint) Register the need for reflection on the method with the specified name and parameter types.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.registerTypes
(Iterable<TypeReference> types, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the types defined by the specified list oftype references
.