Class DefaultModifableConfigurablePopulator<SOURCE,TARGET,OPTION>
- java.lang.Object
-
- de.hybris.platform.converters.impl.DefaultModifableConfigurablePopulator<SOURCE,TARGET,OPTION>
-
- All Implemented Interfaces:
ConfigurablePopulator<SOURCE,TARGET,OPTION>,ModifiableConfigurablePopulator<SOURCE,TARGET,OPTION>
- Direct Known Subclasses:
AbstractModifiableConfigurablePopulator
public class DefaultModifableConfigurablePopulator<SOURCE,TARGET,OPTION> extends java.lang.Object implements ModifiableConfigurablePopulator<SOURCE,TARGET,OPTION>
Default implementation of theConfigurablePopulatorimplementingModifiableConfigurablePopulator
-
-
Constructor Summary
Constructors Constructor Description DefaultModifableConfigurablePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyModification(ConfigurablePopulatorModification<SOURCE,TARGET,OPTION> modification)protected java.util.Map<OPTION,Populator<SOURCE,TARGET>>getPopulators()voidpopulate(SOURCE source, TARGET target, java.util.Collection<OPTION> options)Populate the target instance from the source instance.voidsetPopulators(java.util.Map<OPTION,Populator<SOURCE,TARGET>> populators)
-
-
-
Method Detail
-
applyModification
public void applyModification(ConfigurablePopulatorModification<SOURCE,TARGET,OPTION> modification)
- Specified by:
applyModificationin interfaceModifiableConfigurablePopulator<SOURCE,TARGET,OPTION>
-
populate
public void populate(SOURCE source, TARGET target, java.util.Collection<OPTION> options) throws ConversionException
Description copied from interface:ConfigurablePopulatorPopulate the target instance from the source instance. The collection of options is used to control what data is populated.- Specified by:
populatein interfaceConfigurablePopulator<SOURCE,TARGET,OPTION>- Parameters:
source- the source objecttarget- the target to filloptions- options used to control what data is populated- Throws:
ConversionException- if an error occurs
-
-