Uses of Interface
org.springframework.aot.hint.TypeReference
Package
Description
Support for recording method invocations relevant to
RuntimeHints
metadata.Support classes for components that contribute generated code equivalent to a
runtime behavior.
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
Modifier and TypeMethodDescriptionRecordedInvocation.getInstanceTypeReference()
Return the Type reference of the object being invoked.Modifier 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.generate
-
Uses of TypeReference in org.springframework.aot.hint
Modifier and TypeClassDescriptionclass
BaseTypeReference
implementation that ensures consistent behaviour forequals()
,hashCode()
, andtoString()
based on the canonical name.Modifier and TypeMethodDescriptionAbstractTypeReference.getEnclosingType()
TypeReference.getEnclosingType()
Return the enclosing type reference, ornull
if this type reference does not have an enclosing type.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()
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.Modifier and TypeMethodDescriptionExecutableHint.getParameterTypes()
Return the parameter types of the executable.JdkProxyHint.getProxiedInterfaces()
Return the interfaces to be proxied.static List<TypeReference>
Create a list oftype references
mapped by the specified types.Modifier and TypeMethodDescriptionint
AbstractTypeReference.compareTo
(TypeReference other) ResourcePatternHints.Builder.excludes
(TypeReference reachableType, String... excludes) Exclude resources matching the specified patterns.ReflectionHints.getTypeHint
(TypeReference type) Return the reflection hints for the type defined by the specifiedTypeReference
.ResourcePatternHints.Builder.includes
(TypeReference reachableType, String... includes) Include resources matching the specified patterns.static JdkProxyHint.Builder
JdkProxyHint.of
(TypeReference... proxiedInterfaces) Initialize a builder with the proxied interfaces to use.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 is in a reachable code path from a static analysis point of view.JdkProxyHint.Builder.proxiedInterfaces
(TypeReference... proxiedInterfaces) Add the specified interfaces that the proxy should implement.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
.ReflectionHints.registerType
(TypeReference type, MemberCategory... memberCategories) Register or customize reflection hints for the specified type using the specifiedMemberCategories
.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.Modifier and TypeMethodDescriptionReflectionHints.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, ExecutableMode mode) Register the need for reflection on the constructor with the specified parameter types, using the specifiedExecutableMode
.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
.ModifierConstructorDescriptionprotected
AbstractTypeReference
(String packageName, String simpleName, TypeReference enclosingType) -
Uses of TypeReference in org.springframework.aot.hint.predicate
Modifier 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.