接口的使用
org.springframework.core.convert.ConversionService
使用ConversionService的程序包 程序包 说明 org.springframework.beans This package contains interfaces and classes for manipulating Java beans.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.support Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.org.springframework.core.convert.converter SPI to implement Converters for the type conversion system.org.springframework.core.convert.support Default implementation of the type conversion system.org.springframework.expression.spel.support SpEL's default implementations for various core abstractions.org.springframework.format.support Support classes for the formatting package, providing common implementations as well as adapters.org.springframework.http.converter Provides an HttpMessageConverter abstraction to convert between Java objects and HTTP input/output messages.org.springframework.jdbc.core Provides the core JDBC framework, based on JdbcTemplate and its associated callback interfaces and helper objects.org.springframework.messaging.converter Provides support for message conversion.org.springframework.messaging.handler.annotation.reactive Support classes for working with annotated message-handling methods with non-blocking, reactive contracts.org.springframework.messaging.handler.annotation.support Support classes for working with annotated message-handling methods.org.springframework.messaging.simp.annotation.support Support classes for handling messages from simple messaging protocols (like STOMP).org.springframework.validation Provides data binding and validation functionality, for usage in business and/or UI layers.org.springframework.web.bind.support Support classes for web data binding.org.springframework.web.method.annotation Support classes for annotation-based handler method processing.org.springframework.web.method.support Generic support classes for handler method processing.org.springframework.web.servlet.handler Provides standard HandlerMapping implementations, including abstract base classes for custom implementations.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.socket.adapter.standard Adapter classes for the standard Java WebSocket API.org.springframework.beans中ConversionService的使用
返回ConversionService的org.springframework.beans中的方法 修饰符和类型 方法 说明 ConversionService
ConfigurablePropertyAccessor. getConversionService()
Return the associated ConversionService, if any.ConversionService
PropertyEditorRegistrySupport. getConversionService()
Return the associated ConversionService, if any.参数类型为ConversionService的org.springframework.beans中的方法 修饰符和类型 方法 说明 void
ConfigurablePropertyAccessor. setConversionService(ConversionService conversionService)
Specify a Spring 3.0 ConversionService to use for converting property values, as an alternative to JavaBeans PropertyEditors.void
PropertyEditorRegistrySupport. setConversionService(ConversionService conversionService)
Specify a Spring 3.0 ConversionService to use for converting property values, as an alternative to JavaBeans PropertyEditors.org.springframework.beans.factory.config中ConversionService的使用
返回ConversionService的org.springframework.beans.factory.config中的方法 修饰符和类型 方法 说明 ConversionService
ConfigurableBeanFactory. getConversionService()
Return the associated ConversionService, if any.参数类型为ConversionService的org.springframework.beans.factory.config中的方法 修饰符和类型 方法 说明 void
ConfigurableBeanFactory. setConversionService(ConversionService conversionService)
Specify a Spring 3.0 ConversionService to use for converting property values, as an alternative to JavaBeans PropertyEditors.org.springframework.beans.factory.support中ConversionService的使用
返回ConversionService的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 ConversionService
AbstractBeanFactory. getConversionService()
参数类型为ConversionService的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 void
AbstractBeanFactory. setConversionService(ConversionService conversionService)
org.springframework.context.support中ConversionService的使用
返回ConversionService的org.springframework.context.support中的方法 修饰符和类型 方法 说明 ConversionService
ConversionServiceFactoryBean. getObject()
返回变量类型为ConversionService的类型的org.springframework.context.support中的方法 修饰符和类型 方法 说明 Class<? extends ConversionService>
ConversionServiceFactoryBean. getObjectType()
org.springframework.core.convert.converter中ConversionService的使用
参数类型为ConversionService的org.springframework.core.convert.converter中的构造器 构造器 说明 ConvertingComparator(Comparator<T> comparator, ConversionService conversionService, Class<? extends T> targetType)
Create a newConvertingComparator
instance.org.springframework.core.convert.support中ConversionService的使用
org.springframework.core.convert.support中ConversionService的子接口 修饰符和类型 接口 说明 interface
ConfigurableConversionService
Configuration interface to be implemented by most if not allConversionService
types.实现ConversionService的org.springframework.core.convert.support中的类 修饰符和类型 类 说明 class
DefaultConversionService
A specialization ofGenericConversionService
configured by default with converters appropriate for most environments.class
GenericConversionService
BaseConversionService
implementation suitable for use in most environments.返回ConversionService的org.springframework.core.convert.support中的方法 修饰符和类型 方法 说明 static ConversionService
DefaultConversionService. getSharedInstance()
Return a shared defaultConversionService
instance, lazily building it once needed.参数类型为ConversionService的org.springframework.core.convert.support中的构造器 构造器 说明 ConvertingPropertyEditorAdapter(ConversionService conversionService, TypeDescriptor targetDescriptor)
Create a new ConvertingPropertyEditorAdapter for a givenConversionService
and the given target type.org.springframework.expression.spel.support中ConversionService的使用
参数类型为ConversionService的org.springframework.expression.spel.support中的方法 修饰符和类型 方法 说明 SimpleEvaluationContext.Builder
SimpleEvaluationContext.Builder. withConversionService(ConversionService conversionService)
Register a customConversionService
.参数类型为ConversionService的org.springframework.expression.spel.support中的构造器 构造器 说明 StandardTypeConverter(ConversionService conversionService)
Create a StandardTypeConverter for the given ConversionService.org.springframework.format.support中ConversionService的使用
实现ConversionService的org.springframework.format.support中的类 修饰符和类型 类 说明 class
DefaultFormattingConversionService
A specialization ofFormattingConversionService
configured by default with converters and formatters appropriate for most applications.class
FormattingConversionService
AConversionService
implementation designed to be configured as aFormatterRegistry
.org.springframework.http.converter中ConversionService的使用
参数类型为ConversionService的org.springframework.http.converter中的构造器 构造器 说明 ObjectToStringHttpMessageConverter(ConversionService conversionService)
A constructor accepting aConversionService
to use to convert the (String) message body to/from the target class type.ObjectToStringHttpMessageConverter(ConversionService conversionService, Charset defaultCharset)
A constructor accepting aConversionService
as well as a default charset.org.springframework.jdbc.core中ConversionService的使用
返回ConversionService的org.springframework.jdbc.core中的方法 修饰符和类型 方法 说明 ConversionService
BeanPropertyRowMapper. getConversionService()
Return aConversionService
for binding JDBC values to bean properties, ornull
if none.参数类型为ConversionService的org.springframework.jdbc.core中的方法 修饰符和类型 方法 说明 static <T> BeanPropertyRowMapper<T>
BeanPropertyRowMapper. newInstance(Class<T> mappedClass, ConversionService conversionService)
Static factory method to create a newBeanPropertyRowMapper
.static <T> SingleColumnRowMapper<T>
SingleColumnRowMapper. newInstance(Class<T> requiredType, ConversionService conversionService)
Static factory method to create a newSingleColumnRowMapper
.void
BeanPropertyRowMapper. setConversionService(ConversionService conversionService)
Set aConversionService
for binding JDBC values to bean properties, ornull
for none.void
SingleColumnRowMapper. setConversionService(ConversionService conversionService)
Set aConversionService
for converting a fetched value.org.springframework.messaging.converter中ConversionService的使用
参数类型为ConversionService的org.springframework.messaging.converter中的构造器 构造器 说明 GenericMessageConverter(ConversionService conversionService)
Create a new instance with the givenConversionService
.org.springframework.messaging.handler.annotation.reactive中ConversionService的使用
返回ConversionService的org.springframework.messaging.handler.annotation.reactive中的方法 修饰符和类型 方法 说明 ConversionService
MessageMappingMessageHandler. getConversionService()
Return the configured ConversionService.参数类型为ConversionService的org.springframework.messaging.handler.annotation.reactive中的方法 修饰符和类型 方法 说明 void
MessageMappingMessageHandler. setConversionService(ConversionService conversionService)
Configure aConversionService
to use for type conversion of String based values, e.g. in destination variables or headers.参数类型为ConversionService的org.springframework.messaging.handler.annotation.reactive中的构造器 构造器 说明 AbstractNamedValueMethodArgumentResolver(ConversionService conversionService, ConfigurableBeanFactory beanFactory)
Constructor with aConversionService
and aBeanFactory
.DestinationVariableMethodArgumentResolver(ConversionService conversionService)
HeaderMethodArgumentResolver(ConversionService conversionService, ConfigurableBeanFactory beanFactory)
org.springframework.messaging.handler.annotation.support中ConversionService的使用
参数类型为ConversionService的org.springframework.messaging.handler.annotation.support中的方法 修饰符和类型 方法 说明 void
DefaultMessageHandlerMethodFactory. setConversionService(ConversionService conversionService)
Set theConversionService
to use to convert the original message payload or headers.参数类型为ConversionService的org.springframework.messaging.handler.annotation.support中的构造器 构造器 说明 AbstractNamedValueMethodArgumentResolver(ConversionService conversionService, ConfigurableBeanFactory beanFactory)
Constructor with aConversionService
and aBeanFactory
.DestinationVariableMethodArgumentResolver(ConversionService conversionService)
HeaderMethodArgumentResolver(ConversionService conversionService, ConfigurableBeanFactory beanFactory)
org.springframework.messaging.simp.annotation.support中ConversionService的使用
返回ConversionService的org.springframework.messaging.simp.annotation.support中的方法 修饰符和类型 方法 说明 ConversionService
SimpAnnotationMethodMessageHandler. getConversionService()
Return the configuredConversionService
.参数类型为ConversionService的org.springframework.messaging.simp.annotation.support中的方法 修饰符和类型 方法 说明 void
SimpAnnotationMethodMessageHandler. setConversionService(ConversionService conversionService)
Configure aConversionService
to use when resolving method arguments, for example message header values.org.springframework.validation中ConversionService的使用
返回ConversionService的org.springframework.validation中的方法 修饰符和类型 方法 说明 ConversionService
DataBinder. getConversionService()
Return the associated ConversionService, if any.参数类型为ConversionService的org.springframework.validation中的方法 修饰符和类型 方法 说明 void
AbstractPropertyBindingResult. initConversion(ConversionService conversionService)
void
DataBinder. setConversionService(ConversionService conversionService)
Specify a Spring 3.0 ConversionService to use for converting property values, as an alternative to JavaBeans PropertyEditors.org.springframework.web.bind.support中ConversionService的使用
返回ConversionService的org.springframework.web.bind.support中的方法 修饰符和类型 方法 说明 ConversionService
ConfigurableWebBindingInitializer. getConversionService()
Return the ConversionService which will apply to every DataBinder.参数类型为ConversionService的org.springframework.web.bind.support中的方法 修饰符和类型 方法 说明 void
ConfigurableWebBindingInitializer. setConversionService(ConversionService conversionService)
Specify a ConversionService which will apply to every DataBinder.org.springframework.web.method.annotation中ConversionService的使用
参数类型为ConversionService的org.springframework.web.method.annotation中的方法 修饰符和类型 方法 说明 void
RequestParamMethodArgumentResolver. contributeMethodArgument(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String,Object> uriVariables, ConversionService conversionService)
protected String
RequestParamMethodArgumentResolver. formatUriValue(ConversionService cs, TypeDescriptor sourceType, Object value)
org.springframework.web.method.support中ConversionService的使用
参数类型为ConversionService的org.springframework.web.method.support中的方法 修饰符和类型 方法 说明 void
CompositeUriComponentsContributor. contributeMethodArgument(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String,Object> uriVariables, ConversionService conversionService)
void
UriComponentsContributor. contributeMethodArgument(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String,Object> uriVariables, ConversionService conversionService)
Process the given method argument and either update theUriComponentsBuilder
or add to the map with URI variables to use to expand the URI after all arguments are processed.参数类型为ConversionService的org.springframework.web.method.support中的构造器 构造器 说明 CompositeUriComponentsContributor(Collection<?> contributors, ConversionService cs)
Create an instance from a collection ofUriComponentsContributors
orHandlerMethodArgumentResolvers
.org.springframework.web.servlet.handler中ConversionService的使用
参数类型为ConversionService的org.springframework.web.servlet.handler中的构造器 构造器 说明 ConversionServiceExposingInterceptor(ConversionService conversionService)
Creates a newConversionServiceExposingInterceptor
.org.springframework.web.servlet.mvc.method.annotation中ConversionService的使用
参数类型为ConversionService的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 void
PathVariableMethodArgumentResolver. contributeMethodArgument(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String,Object> uriVariables, ConversionService conversionService)
protected String
PathVariableMethodArgumentResolver. formatUriValue(ConversionService cs, TypeDescriptor sourceType, Object value)
org.springframework.web.socket.adapter.standard中ConversionService的使用
返回ConversionService的org.springframework.web.socket.adapter.standard中的方法 修饰符和类型 方法 说明 protected ConversionService
ConvertingEncoderDecoderSupport. getConversionService()
Strategy method used to obtain theConversionService
.