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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the list of populators.voidPopulate the target instance from the source instance.voidvoidsetBeanName(String name) voidsetPopulators(List<Populator<SOURCE, TARGET>> populators) Set the list of populators.
-
Constructor Details
-
DefaultPopulatorList
public DefaultPopulatorList()
-
-
Method Details
-
getPopulators
Description copied from interface:PopulatorListGet the list of populators.- Specified by:
getPopulatorsin interfacePopulatorList<SOURCE,TARGET> - Returns:
- the populators.
-
setPopulators
Description copied from interface:PopulatorListSet the list of populators.- Specified by:
setPopulatorsin interfacePopulatorList<SOURCE,TARGET> - Parameters:
populators- the populators
-
populate
Populate the target instance from the source instance. Calls a list of injected populators to populate the instance. -
removePopulatorsDuplicates
@PostConstruct public void removePopulatorsDuplicates() -
setBeanName
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
getMyBeanName
-