Class PostToMeConverter

java.lang.Object
com.broadleafcommerce.data.tracking.core.mapping.PostToMeConverter
All Implemented Interfaces:
org.modelmapper.Converter

public class PostToMeConverter extends Object implements org.modelmapper.Converter
As a ModelMapper PostConverter, supports discovery and execution of ProjectionPostConvert annotated methods in nested (arbitrarily deep) child object of a top-level ModelMapperMappable entity. The discovery results are cached.
  • Constructor Details

    • PostToMeConverter

      public PostToMeConverter(Set<Class<?>> managedTypes, List<com.broadleafcommerce.common.extension.mapping.ProjectionReferredTypeOverride> overrides)
  • Method Details

    • convert

      public Object convert(org.modelmapper.spi.MappingContext context)
      Specified by:
      convert in interface org.modelmapper.Converter
    • getPostConvertMethodCache

      public Map<Class<?>,Method> getPostConvertMethodCache()
    • getGraphContainsConverterCache

      public Map<Class<?>,Boolean> getGraphContainsConverterCache()
    • getManagedTypes

      public Set<Class<?>> getManagedTypes()
    • getOverrides

      public List<com.broadleafcommerce.common.extension.mapping.ProjectionReferredTypeOverride> getOverrides()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object