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.ConditionalGenericConverterSpringConverterAdapter based on MicrosphereConverters- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
Converter,Converter,ConfigurableConversionService
-
-
Field Summary
Fields Modifier and Type Field Description static SpringConverterAdapterINSTANCESingletonSpringConverterAdapter
-
Constructor Summary
Constructors Constructor Description SpringConverterAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectconvert(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()booleanmatches(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:
matchesin interfaceorg.springframework.core.convert.converter.ConditionalConverter
-
getConvertibleTypes
public java.util.Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()
- Specified by:
getConvertibleTypesin 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:
convertin interfaceorg.springframework.core.convert.converter.GenericConverter
-
-