类的使用
org.springframework.core.ResolvableType
使用ResolvableType的程序包 程序包 说明 org.springframework.beans This package contains interfaces and classes for manipulating Java beans.org.springframework.beans.factory The core package implementing Spring's lightweight Inversion of Control (IoC) container.org.springframework.beans.factory.config SPI interfaces and configuration-related convenience classes for bean factories.org.springframework.beans.factory.support Classes supporting theorg.springframework.beans.factory
package.org.springframework.context This package builds on the beans package to add support for message sources and for the Observer design pattern, and the ability for application objects to obtain resources using a consistent API.org.springframework.context.event Support classes for application events, like standard context events.org.springframework.context.support Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.org.springframework.core Provides basic classes for exception handling and version detection, and other core helpers that are not specific to any part of the framework.org.springframework.core.codec org.springframework.core.convert Type conversion system API.org.springframework.http.codec org.springframework.http.codec.cbor org.springframework.http.codec.json JSON encoder and decoder support.org.springframework.http.codec.multipart Multipart support.org.springframework.http.codec.protobuf Provides an encoder and a decoder for Google Protocol Buffers.org.springframework.http.codec.xml XML encoder and decoder support.org.springframework.jndi.support Support classes for JNDI usage, including a JNDI-based BeanFactory implementation.org.springframework.messaging.rsocket Support for the RSocket protocol.org.springframework.web.reactive Top-level package for thespring-webflux
module that containsDispatcherHandler
, the main entry point for WebFlux server endpoint processing including key contracts used to map requests to handlers, invoke them, and process the result.org.springframework.web.reactive.function Provides a foundation for both the reactive client and server subpackages.org.springframework.web.server Core interfaces and classes for Spring's generic, reactive web support.org.springframework.beans中ResolvableType的使用
返回ResolvableType的org.springframework.beans中的方法 修饰符和类型 方法 说明 abstract ResolvableType
AbstractNestablePropertyAccessor.PropertyHandler. getResolvableType()
org.springframework.beans.factory中ResolvableType的使用
返回ResolvableType的org.springframework.beans.factory中的方法 修饰符和类型 方法 说明 ResolvableType
NoSuchBeanDefinitionException. getResolvableType()
Return the requiredResolvableType
of the missing bean, if it was a lookup by type that failed.参数类型为ResolvableType的org.springframework.beans.factory中的方法 修饰符和类型 方法 说明 static String[]
BeanFactoryUtils. beanNamesForTypeIncludingAncestors(ListableBeanFactory lbf, ResolvableType type)
Get all bean names for the given type, including those defined in ancestor factories.static String[]
BeanFactoryUtils. beanNamesForTypeIncludingAncestors(ListableBeanFactory lbf, ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit)
Get all bean names for the given type, including those defined in ancestor factories.String[]
ListableBeanFactory. getBeanNamesForType(ResolvableType type)
Return the names of beans matching the given type (including subclasses), judging from either bean definitions or the value ofgetObjectType
in the case of FactoryBeans.String[]
ListableBeanFactory. getBeanNamesForType(ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit)
Return the names of beans matching the given type (including subclasses), judging from either bean definitions or the value ofgetObjectType
in the case of FactoryBeans.<T> ObjectProvider<T>
BeanFactory. getBeanProvider(ResolvableType requiredType)
Return a provider for the specified bean, allowing for lazy on-demand retrieval of instances, including availability and uniqueness options.boolean
BeanFactory. isTypeMatch(String name, ResolvableType typeToMatch)
Check whether the bean with the given name matches the specified type.参数类型为ResolvableType的org.springframework.beans.factory中的构造器 构造器 说明 NoSuchBeanDefinitionException(ResolvableType type)
Create a newNoSuchBeanDefinitionException
.NoSuchBeanDefinitionException(ResolvableType type, String message)
Create a newNoSuchBeanDefinitionException
.NoUniqueBeanDefinitionException(ResolvableType type, String... beanNamesFound)
Create a newNoUniqueBeanDefinitionException
.NoUniqueBeanDefinitionException(ResolvableType type, Collection<String> beanNamesFound)
Create a newNoUniqueBeanDefinitionException
.org.springframework.beans.factory.config中ResolvableType的使用
返回ResolvableType的org.springframework.beans.factory.config中的方法 修饰符和类型 方法 说明 ResolvableType
BeanDefinition. getResolvableType()
Return a resolvable type for this bean definition, based on the bean class or other specific metadata.ResolvableType
DependencyDescriptor. getResolvableType()
Build aResolvableType
object for the wrapped parameter/field.参数类型为ResolvableType的org.springframework.beans.factory.config中的方法 修饰符和类型 方法 说明 Object
DependencyDescriptor. resolveNotUnique(ResolvableType type, Map<String,Object> matchingBeans)
Resolve the specified not-unique scenario: by default, throwing aNoUniqueBeanDefinitionException
.org.springframework.beans.factory.support中ResolvableType的使用
返回ResolvableType的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 ResolvableType
AbstractBeanDefinition. getResolvableType()
Return a resolvable type for this bean definition.ResolvableType
RootBeanDefinition. getResolvableType()
Return aResolvableType
for this bean definition, either from runtime-cached type information or from configuration-timeRootBeanDefinition.setTargetType(ResolvableType)
orAbstractBeanDefinition.setBeanClass(Class)
, also considering resolved factory method definitions.protected ResolvableType
GenericTypeAwareAutowireCandidateResolver. getReturnTypeForFactoryMethod(RootBeanDefinition rbd, DependencyDescriptor descriptor)
protected ResolvableType
AbstractAutowireCapableBeanFactory. getTypeForFactoryBean(String beanName, RootBeanDefinition mbd, boolean allowInit)
This implementation attempts to query the FactoryBean's generic parameter metadata if present to determine the object type.protected ResolvableType
AbstractBeanFactory. getTypeForFactoryBean(String beanName, RootBeanDefinition mbd, boolean allowInit)
Determine the bean type for the given FactoryBean definition, as far as possible.参数类型为ResolvableType的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 String[]
DefaultListableBeanFactory. getBeanNamesForType(ResolvableType type)
String[]
DefaultListableBeanFactory. getBeanNamesForType(ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit)
String[]
StaticListableBeanFactory. getBeanNamesForType(ResolvableType type)
String[]
StaticListableBeanFactory. getBeanNamesForType(ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit)
<T> ObjectProvider<T>
DefaultListableBeanFactory. getBeanProvider(ResolvableType requiredType)
<T> ObjectProvider<T>
StaticListableBeanFactory. getBeanProvider(ResolvableType requiredType)
boolean
AbstractBeanFactory. isTypeMatch(String name, ResolvableType typeToMatch)
protected boolean
AbstractBeanFactory. isTypeMatch(String name, ResolvableType typeToMatch, boolean allowFactoryBeanInit)
Internal extended variant ofAbstractBeanFactory.isTypeMatch(String, ResolvableType)
to check whether the bean with the given name matches the specified type.boolean
StaticListableBeanFactory. isTypeMatch(String name, ResolvableType typeToMatch)
void
RootBeanDefinition. setTargetType(ResolvableType targetType)
Specify a generics-containing target type of this bean definition, if known in advance.org.springframework.context中ResolvableType的使用
返回ResolvableType的org.springframework.context中的方法 修饰符和类型 方法 说明 ResolvableType
PayloadApplicationEvent. getResolvableType()
org.springframework.context.event中ResolvableType的使用
参数类型为ResolvableType的org.springframework.context.event中的方法 修饰符和类型 方法 说明 protected Collection<ApplicationListener<?>>
AbstractApplicationEventMulticaster. getApplicationListeners(ApplicationEvent event, ResolvableType eventType)
Return a Collection of ApplicationListeners matching the given event type.void
ApplicationEventMulticaster. multicastEvent(ApplicationEvent event, ResolvableType eventType)
Multicast the given application event to appropriate listeners.void
SimpleApplicationEventMulticaster. multicastEvent(ApplicationEvent event, ResolvableType eventType)
protected boolean
AbstractApplicationEventMulticaster. supportsEvent(Class<?> listenerType, ResolvableType eventType)
Filter a listener early through checking its generically declared event type before trying to instantiate it.protected boolean
AbstractApplicationEventMulticaster. supportsEvent(ApplicationListener<?> listener, ResolvableType eventType, Class<?> sourceType)
Determine whether the given listener supports the given event.boolean
ApplicationListenerMethodAdapter. supportsEventType(ResolvableType eventType)
boolean
GenericApplicationListener. supportsEventType(ResolvableType eventType)
Determine whether this listener actually supports the given event type.boolean
GenericApplicationListenerAdapter. supportsEventType(ResolvableType eventType)
boolean
SourceFilteringListener. supportsEventType(ResolvableType eventType)
org.springframework.context.support中ResolvableType的使用
参数类型为ResolvableType的org.springframework.context.support中的方法 修饰符和类型 方法 说明 String[]
AbstractApplicationContext. getBeanNamesForType(ResolvableType type)
String[]
AbstractApplicationContext. getBeanNamesForType(ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit)
<T> ObjectProvider<T>
AbstractApplicationContext. getBeanProvider(ResolvableType requiredType)
boolean
AbstractApplicationContext. isTypeMatch(String name, ResolvableType typeToMatch)
protected void
AbstractApplicationContext. publishEvent(Object event, ResolvableType eventType)
Publish the given event to all listeners.org.springframework.core中ResolvableType的使用
声明为ResolvableType的org.springframework.core中的字段 修饰符和类型 字段 说明 static ResolvableType
ResolvableType. NONE
ResolvableType
returned when no value is available.返回ResolvableType的org.springframework.core中的方法 修饰符和类型 方法 说明 ResolvableType
ResolvableType. as(Class<?> type)
Return this type as aResolvableType
of the specified class.ResolvableType
ResolvableType. asCollection()
Convenience method to return this type as a resolvableCollection
type.ResolvableType
ResolvableType. asMap()
Convenience method to return this type as a resolvableMap
type.static ResolvableType
ResolvableType. forArrayComponent(ResolvableType componentType)
Return aResolvableType
as a array of the specifiedcomponentType
.static ResolvableType
ResolvableType. forClass(Class<?> clazz)
Return aResolvableType
for the specifiedClass
, using the full generic type information for assignability checks.static ResolvableType
ResolvableType. forClass(Class<?> baseType, Class<?> implementationClass)
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
ResolvableType. forField(Field field)
Return aResolvableType
for the specifiedField
.static ResolvableType
ResolvableType. forField(Field field, int nestingLevel)
Return aResolvableType
for the specifiedField
with the given nesting level.static ResolvableType
ResolvableType. forField(Field field, int nestingLevel, Class<?> implementationClass)
Return aResolvableType
for the specifiedField
with a given implementation and the given nesting level.static ResolvableType
ResolvableType. forField(Field field, Class<?> implementationClass)
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
ResolvableType. forType(Type type)
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
ResolvableType. getComponentType()
Return the ResolvableType representing the component type of the array orNONE
if this type does not represent an array.ResolvableType
ResolvableType. getGeneric(int... indexes)
Return aResolvableType
representing the generic parameter for the given indexes.ResolvableType[]
ResolvableType. getGenerics()
Return an array ofResolvableTypes
representing the generic parameters of this type.ResolvableType[]
ResolvableType. getInterfaces()
Return aResolvableType
array representing the direct interfaces implemented by this type.ResolvableType
ResolvableType. getNested(int nestingLevel)
Return aResolvableType
for the specified nesting level.ResolvableType
ResolvableType. getNested(int nestingLevel, Map<Integer,Integer> typeIndexesPerLevel)
Return aResolvableType
for the specified nesting level.ResolvableType
ResolvableTypeProvider. getResolvableType()
Return theResolvableType
describing this instance (ornull
if some sort of default should be applied instead).ResolvableType
ResolvableType. getSuperType()
Return aResolvableType
representing the direct supertype of this type.参数类型为ResolvableType的org.springframework.core中的方法 修饰符和类型 方法 说明 static ResolvableType
ResolvableType. forArrayComponent(ResolvableType componentType)
Return aResolvableType
as a 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.org.springframework.core.codec中ResolvableType的使用
参数类型为ResolvableType的org.springframework.core.codec中的方法 修饰符和类型 方法 说明 boolean
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
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
ResourceEncoder. canEncode(ResolvableType elementType, MimeType mimeType)
boolean
ResourceRegionEncoder. canEncode(ResolvableType elementType, MimeType mimeType)
reactor.core.publisher.Flux<T>
AbstractDataBufferDecoder. decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
byte[]
ByteArrayDecoder. decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
ByteBuffer
ByteBufferDecoder. decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Flux<DataBuffer>
DataBufferDecoder. decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
DataBuffer
DataBufferDecoder. decode(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Flux<T>
Decoder. decode(org.reactivestreams.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.reactor.core.publisher.Flux<Resource>
ResourceDecoder. decode(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
Resource
ResourceDecoder. decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Flux<String>
StringDecoder. decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
String
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)
已过时。as of 5.2, please implementDecoder.decode(DataBuffer, ResolvableType, MimeType, Map)
insteadreactor.core.publisher.Mono<T>
AbstractDataBufferDecoder. decodeToMono(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Mono<T>
AbstractDecoder. decodeToMono(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Mono<T>
Decoder. decodeToMono(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
Decode aDataBuffer
input stream into a Mono ofT
.reactor.core.publisher.Flux<DataBuffer>
AbstractSingleValueEncoder. encode(org.reactivestreams.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(org.reactivestreams.Publisher<? extends byte[]> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Flux<DataBuffer>
ByteBufferEncoder. encode(org.reactivestreams.Publisher<? extends ByteBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Flux<DataBuffer>
CharSequenceEncoder. encode(org.reactivestreams.Publisher<? extends CharSequence> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Flux<DataBuffer>
DataBufferEncoder. encode(org.reactivestreams.Publisher<? extends DataBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Flux<DataBuffer>
Encoder. encode(org.reactivestreams.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.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(org.reactivestreams.Publisher<? extends ResourceRegion> input, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
DataBuffer
ByteArrayEncoder. encodeValue(byte[] bytes, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)
DataBuffer
ByteBufferEncoder. encodeValue(ByteBuffer byteBuffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)
DataBuffer
CharSequenceEncoder. encodeValue(CharSequence charSequence, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)
DataBuffer
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.org.springframework.core.convert中ResolvableType的使用
返回ResolvableType的org.springframework.core.convert中的方法 修饰符和类型 方法 说明 ResolvableType
TypeDescriptor. getResolvableType()
Return the underlyingResolvableType
.参数类型为ResolvableType的org.springframework.core.convert中的构造器 构造器 说明 TypeDescriptor(ResolvableType resolvableType, Class<?> type, Annotation[] annotations)
Create a new type descriptor from aResolvableType
.org.springframework.http.codec中ResolvableType的使用
参数类型为ResolvableType的org.springframework.http.codec中的方法 修饰符和类型 方法 说明 boolean
DecoderHttpMessageReader. canRead(ResolvableType elementType, MediaType mediaType)
boolean
FormHttpMessageReader. canRead(ResolvableType elementType, MediaType mediaType)
boolean
HttpMessageReader. canRead(ResolvableType elementType, MediaType mediaType)
Whether the given object type is supported by this reader.boolean
ServerSentEventHttpMessageReader. canRead(ResolvableType elementType, MediaType mediaType)
boolean
EncoderHttpMessageWriter. canWrite(ResolvableType elementType, MediaType mediaType)
boolean
FormHttpMessageWriter. canWrite(ResolvableType elementType, MediaType mediaType)
boolean
HttpMessageWriter. canWrite(ResolvableType elementType, MediaType mediaType)
Whether the given object type is supported by this writer.boolean
ResourceHttpMessageWriter. canWrite(ResolvableType elementType, MediaType mediaType)
boolean
ServerSentEventHttpMessageWriter. canWrite(ResolvableType elementType, MediaType mediaType)
Map<String,Object>
HttpMessageDecoder. getDecodeHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response)
Get decoding hints based on the server request or annotations on the target controller method parameter.default Map<String,Object>
HttpMessageEncoder. getEncodeHints(ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response)
Get decoding hints based on the server request or annotations on the target controller method parameter.protected Map<String,Object>
DecoderHttpMessageReader. getReadHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response)
Get additional hints for decoding for example based on the server request or annotations from controller method parameters.protected Map<String,Object>
ResourceHttpMessageReader. getReadHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response)
protected Map<String,Object>
EncoderHttpMessageWriter. getWriteHints(ResolvableType streamType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response)
Get additional hints for encoding for example based on the server request or annotations from controller method parameters.reactor.core.publisher.Flux<T>
DecoderHttpMessageReader. read(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, Map<String,Object> hints)
reactor.core.publisher.Flux<T>
DecoderHttpMessageReader. read(ResolvableType elementType, ReactiveHttpInputMessage message, Map<String,Object> hints)
reactor.core.publisher.Flux<MultiValueMap<String,String>>
FormHttpMessageReader. read(ResolvableType elementType, ReactiveHttpInputMessage message, Map<String,Object> hints)
default reactor.core.publisher.Flux<T>
HttpMessageReader. read(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, Map<String,Object> hints)
Server-side only alternative toHttpMessageReader.read(ResolvableType, ReactiveHttpInputMessage, Map)
with additional context available.reactor.core.publisher.Flux<T>
HttpMessageReader. read(ResolvableType elementType, ReactiveHttpInputMessage message, Map<String,Object> hints)
Read from the input message and encode to a stream of objects.reactor.core.publisher.Flux<Object>
ServerSentEventHttpMessageReader. read(ResolvableType elementType, ReactiveHttpInputMessage message, Map<String,Object> hints)
reactor.core.publisher.Mono<T>
DecoderHttpMessageReader. readMono(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, Map<String,Object> hints)
reactor.core.publisher.Mono<T>
DecoderHttpMessageReader. readMono(ResolvableType elementType, ReactiveHttpInputMessage message, Map<String,Object> hints)
reactor.core.publisher.Mono<MultiValueMap<String,String>>
FormHttpMessageReader. readMono(ResolvableType elementType, ReactiveHttpInputMessage message, Map<String,Object> hints)
default reactor.core.publisher.Mono<T>
HttpMessageReader. readMono(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, Map<String,Object> hints)
Server-side only alternative toHttpMessageReader.readMono(ResolvableType, ReactiveHttpInputMessage, Map)
with additional, context available.reactor.core.publisher.Mono<T>
HttpMessageReader. readMono(ResolvableType elementType, ReactiveHttpInputMessage message, Map<String,Object> hints)
Read from the input message and encode to a single object.reactor.core.publisher.Mono<Object>
ServerSentEventHttpMessageReader. readMono(ResolvableType elementType, ReactiveHttpInputMessage message, Map<String,Object> hints)
reactor.core.publisher.Mono<Void>
EncoderHttpMessageWriter. write(org.reactivestreams.Publisher<? extends T> inputStream, ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response, Map<String,Object> hints)
reactor.core.publisher.Mono<Void>
EncoderHttpMessageWriter. write(org.reactivestreams.Publisher<? extends T> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String,Object> hints)
reactor.core.publisher.Mono<Void>
FormHttpMessageWriter. write(org.reactivestreams.Publisher<? extends MultiValueMap<String,String>> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String,Object> hints)
default reactor.core.publisher.Mono<Void>
HttpMessageWriter. write(org.reactivestreams.Publisher<? extends T> inputStream, ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response, Map<String,Object> hints)
Server-side only alternative toHttpMessageWriter.write(Publisher, ResolvableType, MediaType, ReactiveHttpOutputMessage, Map)
with additional context available.reactor.core.publisher.Mono<Void>
HttpMessageWriter. write(org.reactivestreams.Publisher<? extends T> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String,Object> hints)
Write an given stream of object to the output message.reactor.core.publisher.Mono<Void>
ResourceHttpMessageWriter. write(org.reactivestreams.Publisher<? extends Resource> inputStream, ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response, Map<String,Object> hints)
reactor.core.publisher.Mono<Void>
ResourceHttpMessageWriter. write(org.reactivestreams.Publisher<? extends Resource> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String,Object> hints)
reactor.core.publisher.Mono<Void>
ServerSentEventHttpMessageWriter. write(org.reactivestreams.Publisher<?> input, ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response, Map<String,Object> hints)
reactor.core.publisher.Mono<Void>
ServerSentEventHttpMessageWriter. write(org.reactivestreams.Publisher<?> input, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String,Object> hints)
org.springframework.http.codec.cbor中ResolvableType的使用
参数类型为ResolvableType的org.springframework.http.codec.cbor中的方法 修饰符和类型 方法 说明 reactor.core.publisher.Flux<Object>
Jackson2CborDecoder. decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Flux<DataBuffer>
Jackson2CborEncoder. encode(org.reactivestreams.Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
org.springframework.http.codec.json中ResolvableType的使用
参数类型为ResolvableType的org.springframework.http.codec.json中的方法 修饰符和类型 方法 说明 boolean
AbstractJackson2Decoder. canDecode(ResolvableType elementType, MimeType mimeType)
boolean
AbstractJackson2Encoder. canEncode(ResolvableType elementType, MimeType mimeType)
protected ObjectWriter
AbstractJackson2Encoder. customizeWriter(ObjectWriter writer, MimeType mimeType, ResolvableType elementType, Map<String,Object> hints)
protected ObjectWriter
Jackson2JsonEncoder. customizeWriter(ObjectWriter writer, MimeType mimeType, ResolvableType elementType, Map<String,Object> hints)
reactor.core.publisher.Flux<Object>
AbstractJackson2Decoder. decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
Object
AbstractJackson2Decoder. decode(DataBuffer dataBuffer, ResolvableType targetType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Mono<Object>
AbstractJackson2Decoder. decodeToMono(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Flux<DataBuffer>
AbstractJackson2Encoder. encode(org.reactivestreams.Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
DataBuffer
AbstractJackson2Encoder. encodeValue(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)
Map<String,Object>
AbstractJackson2Decoder. getDecodeHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response)
Map<String,Object>
AbstractJackson2Encoder. getEncodeHints(ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response)
protected Map<String,Object>
Jackson2CodecSupport. getHints(ResolvableType resolvableType)
protected MethodParameter
Jackson2CodecSupport. getParameter(ResolvableType type)
protected reactor.core.publisher.Flux<DataBuffer>
AbstractJackson2Decoder. processInput(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
Process the input publisher into a flux.protected reactor.core.publisher.Flux<DataBuffer>
Jackson2JsonDecoder. processInput(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
org.springframework.http.codec.multipart中ResolvableType的使用
参数类型为ResolvableType的org.springframework.http.codec.multipart中的方法 修饰符和类型 方法 说明 boolean
MultipartHttpMessageReader. canRead(ResolvableType elementType, MediaType mediaType)
boolean
SynchronossPartHttpMessageReader. canRead(ResolvableType elementType, MediaType mediaType)
boolean
MultipartHttpMessageWriter. canWrite(ResolvableType elementType, MediaType mediaType)
reactor.core.publisher.Flux<MultiValueMap<String,Part>>
MultipartHttpMessageReader. read(ResolvableType elementType, ReactiveHttpInputMessage message, Map<String,Object> hints)
reactor.core.publisher.Flux<Part>
SynchronossPartHttpMessageReader. read(ResolvableType elementType, ReactiveHttpInputMessage message, Map<String,Object> hints)
reactor.core.publisher.Mono<MultiValueMap<String,Part>>
MultipartHttpMessageReader. readMono(ResolvableType elementType, ReactiveHttpInputMessage inputMessage, Map<String,Object> hints)
reactor.core.publisher.Mono<Part>
SynchronossPartHttpMessageReader. readMono(ResolvableType elementType, ReactiveHttpInputMessage message, Map<String,Object> hints)
reactor.core.publisher.Mono<Void>
MultipartHttpMessageWriter. write(org.reactivestreams.Publisher<? extends MultiValueMap<String,?>> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage outputMessage, Map<String,Object> hints)
org.springframework.http.codec.protobuf中ResolvableType的使用
参数类型为ResolvableType的org.springframework.http.codec.protobuf中的方法 修饰符和类型 方法 说明 boolean
ProtobufDecoder. canDecode(ResolvableType elementType, MimeType mimeType)
boolean
ProtobufEncoder. canEncode(ResolvableType elementType, MimeType mimeType)
reactor.core.publisher.Flux<com.google.protobuf.Message>
ProtobufDecoder. decode(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
com.google.protobuf.Message
ProtobufDecoder. decode(DataBuffer dataBuffer, ResolvableType targetType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Mono<com.google.protobuf.Message>
ProtobufDecoder. decodeToMono(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Flux<DataBuffer>
ProtobufEncoder. encode(org.reactivestreams.Publisher<? extends com.google.protobuf.Message> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
DataBuffer
ProtobufEncoder. encodeValue(com.google.protobuf.Message message, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Mono<Void>
ProtobufHttpMessageWriter. write(org.reactivestreams.Publisher<? extends com.google.protobuf.Message> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String,Object> hints)
org.springframework.http.codec.xml中ResolvableType的使用
参数类型为ResolvableType的org.springframework.http.codec.xml中的方法 修饰符和类型 方法 说明 boolean
Jaxb2XmlDecoder. canDecode(ResolvableType elementType, MimeType mimeType)
boolean
Jaxb2XmlEncoder. canEncode(ResolvableType elementType, MimeType mimeType)
reactor.core.publisher.Flux<Object>
Jaxb2XmlDecoder. decode(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
Object
Jaxb2XmlDecoder. decode(DataBuffer dataBuffer, ResolvableType targetType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Flux<XMLEvent>
XmlEventDecoder. decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
reactor.core.publisher.Mono<Object>
Jaxb2XmlDecoder. decodeToMono(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String,Object> hints)
protected reactor.core.publisher.Flux<DataBuffer>
Jaxb2XmlEncoder. encode(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)
DataBuffer
Jaxb2XmlEncoder. encodeValue(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String,Object> hints)
org.springframework.jndi.support中ResolvableType的使用
参数类型为ResolvableType的org.springframework.jndi.support中的方法 修饰符和类型 方法 说明 <T> ObjectProvider<T>
SimpleJndiBeanFactory. getBeanProvider(ResolvableType requiredType)
boolean
SimpleJndiBeanFactory. isTypeMatch(String name, ResolvableType typeToMatch)
org.springframework.messaging.rsocket中ResolvableType的使用
参数类型为ResolvableType的org.springframework.messaging.rsocket中的方法 修饰符和类型 方法 说明 default <T> Decoder<T>
RSocketStrategies. decoder(ResolvableType elementType, MimeType mimeType)
Find a compatible Decoder for the given element type.default <T> Encoder<T>
RSocketStrategies. encoder(ResolvableType elementType, MimeType mimeType)
Find a compatible Encoder for the given element type.org.springframework.web.reactive中ResolvableType的使用
返回ResolvableType的org.springframework.web.reactive中的方法 修饰符和类型 方法 说明 ResolvableType
HandlerResult. getReturnType()
Return the type of the value returned from the handler -- e.g. the return type declared on a controller method's signature.org.springframework.web.reactive.function中ResolvableType的使用
返回ResolvableType的org.springframework.web.reactive.function中的方法 修饰符和类型 方法 说明 ResolvableType
UnsupportedMediaTypeException. getBodyType()
Return the body type in the context of which this exception was generated.参数类型为ResolvableType的org.springframework.web.reactive.function中的构造器 构造器 说明 UnsupportedMediaTypeException(MediaType contentType, List<MediaType> supportedTypes, ResolvableType bodyType)
Constructor for when trying to encode from or decode to a specific Java type.org.springframework.web.server中ResolvableType的使用
返回ResolvableType的org.springframework.web.server中的方法 修饰符和类型 方法 说明 ResolvableType
UnsupportedMediaTypeStatusException. getBodyType()
Return the body type in the context of which this exception was generated.参数类型为ResolvableType的org.springframework.web.server中的构造器 构造器 说明 UnsupportedMediaTypeStatusException(MediaType contentType, List<MediaType> supportedTypes, ResolvableType bodyType)
Constructor for when trying to encode from or decode to a specific Java type.