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 java.lang.Object implements org.springframework.core.convert.converter.ConditionalGenericConverter
SpringConverter
Adapter based on MicrosphereConverters
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
Converter
,Converter
,ConfigurableConversionService
-
-
Field Summary
Fields Modifier and Type Field Description static SpringConverterAdapter
INSTANCE
SingletonSpringConverterAdapter
-
Constructor Summary
Constructors Constructor Description SpringConverterAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
convert(java.lang.Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
java.util.Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair>
getConvertibleTypes()
boolean
matches(org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
-
-
-
Field Detail
-
INSTANCE
public static final SpringConverterAdapter INSTANCE
SingletonSpringConverterAdapter
-
-
Method Detail
-
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 java.util.Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()
- Specified by:
getConvertibleTypes
in interfaceorg.springframework.core.convert.converter.GenericConverter
-
convert
public java.lang.Object convert(java.lang.Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.GenericConverter
-
-