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:
-
ConverterConverterConfigurableConversionService
-
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 SpringConverterAdapterSingletonSpringConverterAdapter -
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>booleanmatches(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:
matchesin interfaceorg.springframework.core.convert.converter.ConditionalConverter
-
getConvertibleTypes
public Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()- Specified by:
getConvertibleTypesin 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:
convertin interfaceorg.springframework.core.convert.converter.GenericConverter
-