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 the ModelMapper and the mapped object has the fields with the Object type.
Author:
Dima Myroniuk (dmyroniuk)
See Also:
  • Constructor Details

    • AssignableObjectValueTypeConverter

      public AssignableObjectValueTypeConverter()
  • Method Details

    • convert

      public Object convert(org.modelmapper.spi.MappingContext<Object,Object> context)
      Specified by:
      convert in interface org.modelmapper.Converter<Object,Object>
    • match

      public org.modelmapper.spi.ConditionalConverter.MatchResult match(Class<?> sourceType, Class<?> destinationType)
      Specified by:
      match in interface org.modelmapper.spi.ConditionalConverter<Object,Object>