Class AssignableObjectValueTypeConverter
- java.lang.Object
-
- com.broadleafcommerce.common.extension.mapping.AssignableObjectValueTypeConverter
-
- All Implemented Interfaces:
org.modelmapper.Converter<Object,Object>
,org.modelmapper.spi.ConditionalConverter<Object,Object>
public class AssignableObjectValueTypeConverter extends Object implements org.modelmapper.spi.ConditionalConverter<Object,Object>
Converts destination objects that are assignable from the source objects. This converter is required if the deep copy is enabled for theModelMapper
and the mapped object has the fields with theObject
type.- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
ModelMapperConfigurationHelper.createDeepCopyCapable()
-
-
Constructor Summary
Constructors Constructor Description AssignableObjectValueTypeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
convert(org.modelmapper.spi.MappingContext<Object,Object> context)
org.modelmapper.spi.ConditionalConverter.MatchResult
match(Class<?> sourceType, Class<?> destinationType)
-