Package io.beanmapper.spring.converter
Class BeanMapperConverterAdapter
java.lang.Object
io.beanmapper.spring.converter.BeanMapperConverterAdapter
- All Implemented Interfaces:
org.springframework.core.convert.converter.GenericConverter
public class BeanMapperConverterAdapter
extends Object
implements org.springframework.core.convert.converter.GenericConverter
Adapter that allows the bean mapper to be used in
the spring conversion service.
- Since:
- Aug 21, 2015
- Author:
- Jeroen van Schagen
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter
org.springframework.core.convert.converter.GenericConverter.ConvertiblePair
-
Constructor Summary
ConstructorsConstructorDescriptionBeanMapperConverterAdapter
(io.beanmapper.BeanMapper beanMapper) Construct a new instance. -
Method Summary
-
Constructor Details
-
BeanMapperConverterAdapter
public BeanMapperConverterAdapter(io.beanmapper.BeanMapper beanMapper) Construct a new instance.- Parameters:
beanMapper
- the bean mapper
-
-
Method Details
-
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
-