Class SpringTypeConverter
- java.lang.Object
-
- org.openehealth.ipf.commons.spring.core.config.SpringTypeConverter
-
- All Implemented Interfaces:
TypeConverter
public class SpringTypeConverter extends Object implements TypeConverter
TypeConverterimplementation backed by a SpringConversionService- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description SpringTypeConverter(org.springframework.core.convert.ConversionService conversionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanConvert(Class<?> sourceType, Class<?> targetType)<T> Tconvert(Object source, Class<T> targetType)
-
-
-
Method Detail
-
canConvert
public boolean canConvert(Class<?> sourceType, Class<?> targetType)
- Specified by:
canConvertin interfaceTypeConverter
-
convert
public <T> T convert(Object source, Class<T> targetType)
- Specified by:
convertin interfaceTypeConverter
-
-