Class SpringConverterAdapter
java.lang.Object
io.microsphere.spring.core.convert.SpringConverterAdapter
- All Implemented Interfaces:
org.springframework.core.convert.converter.ConditionalConverter
,org.springframework.core.convert.converter.ConditionalGenericConverter
,org.springframework.core.convert.converter.GenericConverter
public class SpringConverterAdapter
extends Object
implements org.springframework.core.convert.converter.ConditionalGenericConverter
Spring
Converter
Adapter based on Microsphere Converters
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
Converter
Converter
ConfigurableConversionService
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter
org.springframework.core.convert.converter.GenericConverter.ConvertiblePair
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpringConverterAdapter
SingletonSpringConverterAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert
(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair>
boolean
matches
(org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
-
Field Details
-
INSTANCE
SingletonSpringConverterAdapter
-
-
Constructor Details
-
SpringConverterAdapter
public SpringConverterAdapter()
-
-
Method Details
-
matches
public boolean matches(org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) - Specified by:
matches
in interfaceorg.springframework.core.convert.converter.ConditionalConverter
-
getConvertibleTypes
public Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()- Specified by:
getConvertibleTypes
in interfaceorg.springframework.core.convert.converter.GenericConverter
-
convert
public Object convert(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) - Specified by:
convert
in interfaceorg.springframework.core.convert.converter.GenericConverter
-