Uses of Interface
org.springframework.aot.hint.TypeReference
Packages that use TypeReference
Package
Description
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.generate
Classes in org.springframework.aot.generate that implement TypeReference -
Uses of TypeReference in org.springframework.aot.hint
Classes in org.springframework.aot.hint that implement TypeReferenceModifier and TypeClassDescriptionclassBaseTypeReferenceimplementation that ensures consistent behaviour forequals(),hashCode(), andtoString()based on the canonical name.Subinterfaces with type arguments of type TypeReference in org.springframework.aot.hintModifier and TypeInterfaceDescriptioninterfaceType abstraction that can be used to refer to types that are not available as aClassyet.Methods in org.springframework.aot.hint that return TypeReferenceModifier and TypeMethodDescriptionLambdaHint.getDeclaringClass()Return the type declaring the lambda.AbstractTypeReference.getEnclosingType()TypeReference.getEnclosingType()Return the enclosing type reference, ornullif this type reference does not have an enclosing type.ConditionalHint.getReachableType()Return the type that should be reachable for this hint to apply, ornullif this hint should always been applied.JavaSerializationHint.getReachableType()Deprecated, for removal: This API element is subject to removal in a future version.JdkProxyHint.getReachableType()LambdaHint.getReachableType()ResourceBundleHint.getReachableType()ResourcePatternHint.getReachableType()TypeHint.getReachableType()JavaSerializationHint.getType()Deprecated, for removal: This API element is subject to removal in a future version.Return thetypethat needs to be serialized using Java serialization at runtime.TypeHint.getType()Return the type that this hint handles.static TypeReferenceCreate an instance based on the specified type.static TypeReferenceCreate an instance based on the specified class name.Methods in org.springframework.aot.hint that return types with arguments of type TypeReferenceModifier and TypeMethodDescriptionLambdaHint.getInterfaces()Return the interfaces that are implemented by the lambda.ExecutableHint.getParameterTypes()Return the parameter types of the executable.JdkProxyHint.getProxiedInterfaces()Return the interfaces to be proxied.static List<TypeReference> Create a list oftype referencesmapped by the specified types.LambdaHint.DeclaringMethod.parameterTypes()Returns the value of theparameterTypesrecord component.Methods in org.springframework.aot.hint with parameters of type TypeReferenceModifier and TypeMethodDescriptionintAbstractTypeReference.compareTo(TypeReference other) ReflectionHints.getTypeHint(TypeReference type) Return the reflection hints for the type defined by the specifiedTypeReference.ResourcePatternHints.Builder.includes(@Nullable TypeReference reachableType, String... includes) Include resources matching the specified glob patterns.static JdkProxyHint.BuilderJdkProxyHint.of(TypeReference... proxiedInterfaces) Initialize a builder with the proxied interfaces to use.static LambdaHint.BuilderLambdaHint.of(TypeReference declaringClass) Initialize a builder with the class declaring the lambda.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.LambdaHint.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.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.registerLambda(TypeReference declaringClass, Consumer<LambdaHint.Builder> lambdaHint) Register aLambdaHint.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 specifiedTypeReferenceshould be made available at runtime.SerializationHints.registerType(TypeReference type) Deprecated, for removal: This API element is subject to removal in a future version.Register that the type defined by the specifiedTypeReferenceneed to be serialized using java serialization.SerializationHints.registerType(TypeReference type, @Nullable Consumer<JavaSerializationHint.Builder> serializationHint) Deprecated, for removal: This API element is subject to removal in a future version.Register that the type defined by the specifiedTypeReferenceneed to be serialized using java serialization.LambdaHint.Builder.withInterfaces(TypeReference... interfaces) Add the specified interfaces that the lambda should implement.Method parameters in org.springframework.aot.hint with type arguments of type TypeReferenceModifier 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.LambdaHint.Builder.withDeclaringMethod(String name, List<TypeReference> parameterTypes) Set the method that declares the lambda.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.Constructors in org.springframework.aot.hint with parameters of type TypeReferenceModifierConstructorDescriptionprotectedAbstractTypeReference(String packageName, String simpleName, @Nullable TypeReference enclosingType) Constructor parameters in org.springframework.aot.hint with type arguments of type TypeReferenceModifierConstructorDescriptionDeclaringMethod(String name, List<TypeReference> parameterTypes) Creates an instance of aDeclaringMethodrecord class. -
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 aJdkProxyHintis 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.onJavaSerialization(TypeReference typeReference, boolean javaSerialization) Return a predicate that checks whether Java serialization is configured for the type according to the given flag.ReflectionHintsPredicates.onType(TypeReference typeReference) Return a predicate that checks whether a reflection hint is registered for the given type.SerializationHintsPredicates.onType(TypeReference typeReference) Deprecated, for removal: This API element is subject to removal in a future version.Return a predicate that checks whether aserialization hintis registered for the given type reference.