Class NoOpPopulator<SOURCE,TARGET>
- java.lang.Object
-
- de.hybris.platform.converters.impl.NoOpPopulator<SOURCE,TARGET>
-
- Type Parameters:
SOURCE- Populator Source typeTARGET- Populator Target type
- All Implemented Interfaces:
Populator<SOURCE,TARGET>
public class NoOpPopulator<SOURCE,TARGET> extends java.lang.Object implements Populator<SOURCE,TARGET>
No operations populator - can be injected into the list of populators for a converter that requires no populators at the time of definition, i.e. when the list of populators will be empty by design and will be extended with real populators in the upstream, overridden converter definition. The NoOpPopulator is required, in order to avoid runtime warnings of the type “Empty populators list found for converter”, that is issued by the AbstractPopulatingConverter validation.
-
-
Constructor Summary
Constructors Constructor Description NoOpPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpopulate(SOURCE source, TARGET target)Populate the target instance with values from the source instance.
-
-
-
Method Detail
-
populate
public void populate(SOURCE source, TARGET target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<SOURCE,TARGET>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
-