Uses of Class
org.springframework.core.ResolvableType
Package
Description
Support classes for components that contribute generated code equivalent to a
runtime behavior.
Provides basic classes for exception handling and version detection,
and other core helpers that are not specific to any part of the framework.
Type conversion system API.
-
Uses of ResolvableType in org.springframework.aot.generate
Modifier and TypeMethodDescriptionstatic AccessControl
AccessControl.forResolvableType
(ResolvableType resolvableType) Create anAccessControl
for the givenResolvableType
. -
Uses of ResolvableType in org.springframework.core
Modifier and TypeFieldDescriptionstatic final ResolvableType
ResolvableType.NONE
ResolvableType
returned when no value is available.Modifier and TypeMethodDescriptionReturn this type as aResolvableType
of the specified class.ResolvableType.asCollection()
Convenience method to return this type as a resolvableCollection
type.ResolvableType.asMap()
Convenience method to return this type as a resolvableMap
type.static ResolvableType
ResolvableType.forArrayComponent
(ResolvableType componentType) Return aResolvableType
as an array of the specifiedcomponentType
.static ResolvableType
Return aResolvableType
for the specifiedClass
, using the full generic type information for assignability checks.static ResolvableType
Return aResolvableType
for the specified base type (interface or base class) with a given implementation class.static ResolvableType
ResolvableType.forClassWithGenerics
(Class<?> clazz, Class<?>... generics) Return aResolvableType
for the specifiedClass
with pre-declared generics.static ResolvableType
ResolvableType.forClassWithGenerics
(Class<?> clazz, ResolvableType... generics) Return aResolvableType
for the specifiedClass
with pre-declared generics.static ResolvableType
ResolvableType.forConstructorParameter
(Constructor<?> constructor, int parameterIndex) Return aResolvableType
for the specifiedConstructor
parameter.static ResolvableType
ResolvableType.forConstructorParameter
(Constructor<?> constructor, int parameterIndex, Class<?> implementationClass) Return aResolvableType
for the specifiedConstructor
parameter with a given implementation.static ResolvableType
Return aResolvableType
for the specifiedField
.static ResolvableType
Return aResolvableType
for the specifiedField
with the given nesting level.static ResolvableType
Return aResolvableType
for the specifiedField
with a given implementation and the given nesting level.static ResolvableType
Return aResolvableType
for the specifiedField
with a given implementation.static ResolvableType
ResolvableType.forField
(Field field, ResolvableType implementationType) Return aResolvableType
for the specifiedField
with a given implementation.static ResolvableType
ResolvableType.forInstance
(Object instance) Return aResolvableType
for the specified instance.static ResolvableType
ResolvableType.forMethodParameter
(Method method, int parameterIndex) Return aResolvableType
for the specifiedMethod
parameter.static ResolvableType
ResolvableType.forMethodParameter
(Method method, int parameterIndex, Class<?> implementationClass) Return aResolvableType
for the specifiedMethod
parameter with a given implementation.static ResolvableType
ResolvableType.forMethodParameter
(MethodParameter methodParameter) Return aResolvableType
for the specifiedMethodParameter
.static ResolvableType
ResolvableType.forMethodParameter
(MethodParameter methodParameter, Type targetType) Return aResolvableType
for the specifiedMethodParameter
, overriding the target type to resolve with a specific given type.static ResolvableType
ResolvableType.forMethodParameter
(MethodParameter methodParameter, ResolvableType implementationType) Return aResolvableType
for the specifiedMethodParameter
with a given implementation type.static ResolvableType
ResolvableType.forMethodReturnType
(Method method) Return aResolvableType
for the specifiedMethod
return type.static ResolvableType
ResolvableType.forMethodReturnType
(Method method, Class<?> implementationClass) Return aResolvableType
for the specifiedMethod
return type.static ResolvableType
ResolvableType.forRawClass
(Class<?> clazz) Return aResolvableType
for the specifiedClass
, doing assignability checks against the raw class only (analogous toClass.isAssignableFrom(java.lang.Class<?>)
, which this serves as a wrapper for).static ResolvableType
Return aResolvableType
for the specifiedType
.static ResolvableType
ResolvableType.forType
(Type type, ResolvableType owner) Return aResolvableType
for the specifiedType
backed by the given owner type.static ResolvableType
ResolvableType.forType
(ParameterizedTypeReference<?> typeReference) Return aResolvableType
for the specifiedParameterizedTypeReference
.ResolvableType.getComponentType()
Return the ResolvableType representing the component type of the array orNONE
if this type does not represent an array.ResolvableType.getGeneric
(int... indexes) Return aResolvableType
representing the generic parameter for the given indexes.ResolvableType.getGenerics()
Return an array ofResolvableTypes
representing the generic parameters of this type.ResolvableType.getInterfaces()
Return aResolvableType
array representing the direct interfaces implemented by this type.ResolvableType.getNested
(int nestingLevel) Return aResolvableType
for the specified nesting level.Return aResolvableType
for the specified nesting level.ResolvableTypeProvider.getResolvableType()
Return theResolvableType
describing this instance (ornull
if some sort of default should be applied instead).ResolvableType.getSuperType()
Return aResolvableType
representing the direct supertype of this type.Modifier and TypeMethodDescriptionstatic ResolvableType
ResolvableType.forArrayComponent
(ResolvableType componentType) Return aResolvableType
as an array of the specifiedcomponentType
.static ResolvableType
ResolvableType.forClassWithGenerics
(Class<?> clazz, ResolvableType... generics) Return aResolvableType
for the specifiedClass
with pre-declared generics.static ResolvableType
ResolvableType.forField
(Field field, ResolvableType implementationType) Return aResolvableType
for the specifiedField
with a given implementation.static ResolvableType
ResolvableType.forMethodParameter
(MethodParameter methodParameter, ResolvableType implementationType) Return aResolvableType
for the specifiedMethodParameter
with a given implementation type.static ResolvableType
ResolvableType.forType
(Type type, ResolvableType owner) Return aResolvableType
for the specifiedType
backed by the given owner type.boolean
ResolvableType.isAssignableFrom
(ResolvableType other) Determine whether thisResolvableType
is assignable from the specified other type. -
Uses of ResolvableType in org.springframework.core.codec
Modifier and TypeMethodDescriptionboolean
AbstractDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
ByteArrayDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
ByteBufferDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
DataBufferDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
Decoder.canDecode
(ResolvableType elementType, MimeType mimeType) Whether the decoder supports the given target element type and the MIME type of the source stream.boolean
Netty5BufferDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
NettyByteBufDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
ResourceDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
StringDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
AbstractEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
ByteArrayEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
ByteBufferEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
CharSequenceEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
DataBufferEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
Encoder.canEncode
(ResolvableType elementType, MimeType mimeType) Whether the encoder supports the given source element type and the MIME type for the output stream.boolean
Netty5BufferEncoder.canEncode
(ResolvableType type, MimeType mimeType) boolean
NettyByteBufEncoder.canEncode
(ResolvableType type, MimeType mimeType) boolean
ResourceEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
ResourceRegionEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) reactor.core.publisher.Flux<T>
AbstractDataBufferDecoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) byte[]
ByteArrayDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ByteBufferDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
DataBufferDecoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) DataBufferDecoder.decode
(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<T>
Decoder.decode
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBuffer
input stream into a Flux ofT
.default T
Decoder.decode
(DataBuffer buffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) Decode a data buffer to an Object of type T.io.netty5.buffer.Buffer
Netty5BufferDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) io.netty.buffer.ByteBuf
NettyByteBufDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<Resource>
ResourceDecoder.decode
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ResourceDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<String>
StringDecoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) StringDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected T
AbstractDataBufferDecoder.decodeDataBuffer
(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Deprecated.reactor.core.publisher.Mono<T>
AbstractDataBufferDecoder.decodeToMono
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>
AbstractDecoder.decodeToMono
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>
Decoder.decodeToMono
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBuffer
input stream into a Mono ofT
.final reactor.core.publisher.Flux<DataBuffer>
AbstractSingleValueEncoder.encode
(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected abstract reactor.core.publisher.Flux<DataBuffer>
AbstractSingleValueEncoder.encode
(T t, DataBufferFactory dataBufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) EncodeT
to an outputDataBuffer
stream.reactor.core.publisher.Flux<DataBuffer>
ByteArrayEncoder.encode
(Publisher<? extends byte[]> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
ByteBufferEncoder.encode
(Publisher<? extends ByteBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
CharSequenceEncoder.encode
(Publisher<? extends CharSequence> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
DataBufferEncoder.encode
(Publisher<? extends DataBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
Encoder.encode
(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Encode a stream of Objects of typeT
into aDataBuffer
output stream.reactor.core.publisher.Flux<DataBuffer>
Netty5BufferEncoder.encode
(Publisher<? extends io.netty5.buffer.Buffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
NettyByteBufEncoder.encode
(Publisher<? extends io.netty.buffer.ByteBuf> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected reactor.core.publisher.Flux<DataBuffer>
ResourceEncoder.encode
(Resource resource, DataBufferFactory bufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
ResourceRegionEncoder.encode
(Publisher<? extends ResourceRegion> input, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ByteArrayEncoder.encodeValue
(byte[] bytes, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) ByteBufferEncoder.encodeValue
(ByteBuffer byteBuffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) CharSequenceEncoder.encodeValue
(CharSequence charSequence, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) DataBufferEncoder.encodeValue
(DataBuffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) default DataBuffer
Encoder.encodeValue
(T value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Encode an Object of type T to a data buffer.Netty5BufferEncoder.encodeValue
(io.netty5.buffer.Buffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) NettyByteBufEncoder.encodeValue
(io.netty.buffer.ByteBuf byteBuf, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Decoder.getDecodableMimeTypes
(ResolvableType targetType) Return the list of MIME types supported by this Decoder for the given type of element.Encoder.getEncodableMimeTypes
(ResolvableType elementType) Return the list of MIME types supported by this Encoder for the given type of element. -
Uses of ResolvableType in org.springframework.core.convert
Modifier and TypeMethodDescriptionTypeDescriptor.getResolvableType()
Return the underlyingResolvableType
.ModifierConstructorDescriptionTypeDescriptor
(ResolvableType resolvableType, Class<?> type, Annotation[] annotations) Create a new type descriptor from aResolvableType
.
Decoder.decode(DataBuffer, ResolvableType, MimeType, Map)
instead