Uses of Interface
org.springframework.aot.hint.TypeReference
Packages that use TypeReference
Package
Description
Support for recording method invocations relevant to
RuntimeHints
metadata.Support for registering the need for reflection, resources, java
serialization and proxies at runtime.
Predicate support for runtime hints.
-
Uses of TypeReference in org.springframework.aot.agent
Methods in org.springframework.aot.agent that return TypeReferenceModifier and TypeMethodDescriptionRecordedInvocation.getInstanceTypeReference()
Return the Type reference of the object being invoked.Methods in org.springframework.aot.agent that return types with arguments of type TypeReferenceModifier and TypeMethodDescriptionRecordedInvocation.getArgumentTypes()
Return the types of the arguments used for the current reflection invocation.RecordedInvocation.getArgumentTypes
(int index) Return the types of the arguments used for the current reflection invocation, starting from the given index. -
Uses of TypeReference in org.springframework.aot.hint
Classes in org.springframework.aot.hint that implement TypeReferenceModifier and TypeClassDescriptionclass
BaseTypeReference
implementation that ensures consistent behaviour forequals()
,hashCode()
, andtoString()
based on the canonical name.Methods in org.springframework.aot.hint that return TypeReferenceModifier and TypeMethodDescriptionAbstractTypeReference.getEnclosingType()
TypeReference.getEnclosingType()
Return the enclosing type reference, ornull
if this type reference does not have an enclosing type.ClassProxyHint.getReachableType()
ConditionalHint.getReachableType()
Return the type that should be reachable for this hint to apply, ornull
if this hint should always been applied.JavaSerializationHint.getReachableType()
JdkProxyHint.getReachableType()
ResourceBundleHint.getReachableType()
ResourcePatternHint.getReachableType()
TypeHint.getReachableType()
ClassProxyHint.getTargetClass()
Return the target class of the proxy.JavaSerializationHint.getType()
Return thetype
that needs to be serialized using Java serialization at runtime.TypeHint.getType()
Return the type that this hint handles.static TypeReference
Create an instance based on the specified type.static TypeReference
Create an instance based on the specified class name.Methods in org.springframework.aot.hint that return types with arguments of type TypeReferenceModifier and TypeMethodDescriptionExecutableHint.getParameterTypes()
Return the parameter types of the executable.ClassProxyHint.getProxiedInterfaces()
Return the interfaces to be proxied.JdkProxyHint.getProxiedInterfaces()
Return the interfaces to be proxied.Methods in org.springframework.aot.hint with parameters of type TypeReferenceModifier and TypeMethodDescriptionResourcePatternHints.Builder.excludes
(TypeReference reachableType, String... excludes) Exclude resources matching the specified pattern.ReflectionHints.getTypeHint
(TypeReference type) Return the reflection hints for the type defined by the specifiedTypeReference
.ResourcePatternHints.Builder.includes
(TypeReference reachableType, String... includes) Includes the resources matching the specified pattern.static ClassProxyHint.Builder
ClassProxyHint.of
(TypeReference typeReference) Initialize a builder with the target class to use.static JdkProxyHint.Builder
JdkProxyHint.of
(TypeReference... proxiedInterfaces) Initialize a builder with the proxied interfaces to use.static TypeHint.Builder
TypeHint.of
(TypeReference type) Initialize a builder for the type defined by the specifiedTypeReference
.ClassProxyHint.Builder.onReachableType
(TypeReference reachableType) Make this hint conditional on the fact that the specified type can be resolved.JavaSerializationHint.Builder.onReachableType
(TypeReference reachableType) Make this hint conditional on the fact that the specified type can be resolved.JdkProxyHint.Builder.onReachableType
(TypeReference reachableType) Make this hint conditional on the fact that the specified type can be resolved.ResourceBundleHint.Builder.onReachableType
(TypeReference reachableType) Make this hint conditional on the fact that the specified type can be resolved.TypeHint.Builder.onReachableType
(TypeReference reachableType) Make this hint conditional on the fact that the specified type can be resolved.ClassProxyHint.Builder.proxiedInterfaces
(TypeReference... proxiedInterfaces) Add the specified interfaces that the proxy should implement.JdkProxyHint.Builder.proxiedInterfaces
(TypeReference... proxiedInterfaces) Add the specified interfaces that the proxy should implement.ProxyHints.registerClassProxy
(TypeReference typeReference, Consumer<ClassProxyHint.Builder> classProxyHint) Register that a class proxy is required for the class defined by the specifiedTypeReference
.ProxyHints.registerJdkProxy
(TypeReference... proxiedInterfaces) Register that a JDK proxy implementing the interfaces defined by the specified type references is required.ReflectionHints.registerType
(TypeReference type, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the type defined by the specifiedTypeReference
.ResourceHints.registerType
(TypeReference type) Register that the bytecode of the type defined by the specifiedTypeReference
should be made available at runtime.SerializationHints.registerType
(TypeReference type) Register that the type defined by the specifiedTypeReference
need to be serialized using java serialization.SerializationHints.registerType
(TypeReference type, Consumer<JavaSerializationHint.Builder> serializationHint) Register that the type defined by the specifiedTypeReference
need to be serialized using java serialization.Method parameters in org.springframework.aot.hint with type arguments of type TypeReferenceModifier and TypeMethodDescriptionstatic ExecutableHint.Builder
ExecutableHint.ofConstructor
(List<TypeReference> parameterTypes) Initialize a builder with the parameter types of a constructor.static ExecutableHint.Builder
ExecutableHint.ofMethod
(String name, List<TypeReference> parameterTypes) Initialize a builder with the name and parameters types of a method.ReflectionHints.registerTypes
(Iterable<TypeReference> types, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the types defined by the specified list oftype references
.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.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.Constructors in org.springframework.aot.hint with parameters of type TypeReferenceModifierConstructorDescriptionprotected
AbstractTypeReference
(String packageName, String simpleName, TypeReference enclosingType) Builder
(TypeReference type) -
Uses of TypeReference in org.springframework.aot.hint.predicate
Methods in org.springframework.aot.hint.predicate with parameters of type TypeReferenceModifier and TypeMethodDescriptionProxyHintsPredicates.forInterfaces
(TypeReference... interfaces) Return a predicate that checks whether aJdkProxyHint
is registered for the given interfaces.ResourceHintsPredicates.forResource
(TypeReference type, String resourceName) Return a predicate that checks whether a resource hint is registered for the given resource name, located in the given type's package.ReflectionHintsPredicates.onType
(TypeReference typeReference) Return a predicate that checks whether a reflection hint is registered for the given type.SerializationHintsPredicates.onType
(TypeReference typeReference) Return a predicate that checks whether aserialization hint
is registered for the given type reference.