Uses of Interface
org.springframework.aot.hint.TypeReference
Packages that use TypeReference
Package
Description
Support for registering the need for reflection, resources, java
serialization and proxies at runtime.
-
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.Methods in org.springframework.aot.hint that return TypeReferenceModifier and TypeMethodDescriptionTypeReference.getEnclosingType()Return the enclosing type reference, ornullif this type reference does not have an enclosing type.TypeHint.getReachableType()Return the type that should be reachable for this hint to apply, ornullif this hint should always been applied.ClassProxyHint.getTargetClass()Return the target class of the proxy.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 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.JavaSerializationHints.types()Return thetypesthat need to be serialized using Java serialization at runtime.Methods in org.springframework.aot.hint with parameters of type TypeReferenceModifier and TypeMethodDescriptionReflectionHints.getTypeHint(TypeReference type) Return the reflection hints for the type defined by the specifiedTypeReference.static ClassProxyHint.BuilderClassProxyHint.of(TypeReference targetClass) Initialize a builder with the target class to use.static TypeHint.BuilderTypeHint.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.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 targetClass, 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 specifiedtype referencesis required.JavaSerializationHints.registerType(TypeReference type) Register that the type defined by the specifiedTypeReferenceneed to be serialized using java serialization.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 specifiedTypeReferenceshould be made available at runtime.Method parameters in org.springframework.aot.hint with type arguments of type TypeReferenceModifier and TypeMethodDescriptionstatic ExecutableHint.BuilderExecutableHint.ofConstructor(List<TypeReference> parameterTypes) Initialize a builder with the parameter types of a constructor.static ExecutableHint.BuilderExecutableHint.ofMethod(String name, List<TypeReference> parameterTypes) Initialize a builder with the name and parameters types of a method.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 TypeReference