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 java.lang.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 Summary
Constructors Constructor Description DefaultPopulatorList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMyBeanName()java.util.List<Populator<SOURCE,TARGET>>getPopulators()Get the list of populators.voidpopulate(SOURCE source, TARGET target)Populate the target instance from the source instance.voidremovePopulatorsDuplicates()voidsetBeanName(java.lang.String name)voidsetPopulators(java.util.List<Populator<SOURCE,TARGET>> populators)Set the list of populators.
-
-
-
Method Detail
-
getPopulators
public java.util.List<Populator<SOURCE,TARGET>> getPopulators()
Description copied from interface:PopulatorListGet the list of populators.- Specified by:
getPopulatorsin interfacePopulatorList<SOURCE,TARGET>- Returns:
- the populators.
-
setPopulators
public void setPopulators(java.util.List<Populator<SOURCE,TARGET>> populators)
Description copied from interface:PopulatorListSet the list of populators.- Specified by:
setPopulatorsin interfacePopulatorList<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.
-
removePopulatorsDuplicates
@PostConstruct public void removePopulatorsDuplicates()
-
setBeanName
public void setBeanName(java.lang.String name)
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
getMyBeanName
public java.lang.String getMyBeanName()
-
-