Class DefaultPopulatorList<SOURCE,TARGET>

java.lang.Object
de.hybris.platform.converters.impl.DefaultPopulatorList<SOURCE,TARGET>
All Implemented Interfaces:
Populator<SOURCE,TARGET>, PopulatorList<SOURCE,TARGET>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

public class DefaultPopulatorList<SOURCE,TARGET> extends Object implements Populator<SOURCE,TARGET>, PopulatorList<SOURCE,TARGET>, org.springframework.beans.factory.BeanNameAware
Populator that uses a list of configured populators to populate the target.
  • Constructor Details

    • DefaultPopulatorList

      public DefaultPopulatorList()
  • Method Details

    • getPopulators

      public List<Populator<SOURCE,TARGET>> getPopulators()
      Description copied from interface: PopulatorList
      Get the list of populators.
      Specified by:
      getPopulators in interface PopulatorList<SOURCE,TARGET>
      Returns:
      the populators.
    • setPopulators

      public void setPopulators(List<Populator<SOURCE,TARGET>> populators)
      Description copied from interface: PopulatorList
      Set the list of populators.
      Specified by:
      setPopulators in interface PopulatorList<SOURCE,TARGET>
      Parameters:
      populators - the populators
    • populate

      public void populate(SOURCE source, TARGET target)
      Populate the target instance from the source instance. Calls a list of injected populators to populate the instance.
      Specified by:
      populate in interface Populator<SOURCE,TARGET>
      Parameters:
      source - the source item
      target - the target item to populate
    • removePopulatorsDuplicates

      @PostConstruct public void removePopulatorsDuplicates()
    • setBeanName

      public void setBeanName(String name)
      Specified by:
      setBeanName in interface org.springframework.beans.factory.BeanNameAware
    • getMyBeanName

      public String getMyBeanName()