Class AbstractPopulatingConverter<SOURCE,TARGET>
java.lang.Object
de.hybris.platform.converters.impl.AbstractConverter<SOURCE,TARGET>
de.hybris.platform.converters.impl.AbstractPopulatingConverter<SOURCE,TARGET>
- All Implemented Interfaces:
Populator<SOURCE,,TARGET> PopulatorList<SOURCE,,TARGET> Converter<SOURCE,,TARGET> org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean,org.springframework.core.convert.converter.Converter<SOURCE,TARGET>
- Direct Known Subclasses:
AbstractContextualPopulatingConverter,AbstractPopulatingConverter,AsnEntryModelPopulatingConverter,AsnModelPopulatingConverter,DefaultSolrFacetSearchProductSearchStrategyTest.SearchQueryPageableConverter,DefaultSolrFacetSearchProductSearchStrategyTest.SolrSearchRequestConverter,DefaultSolrFacetSearchProductSearchStrategyTest.SolrSearchResponseConverter,FaultTolerantConverter,PointOfServiceDistanceConverter,TrackingEventToCsvDataConverter
public class AbstractPopulatingConverter<SOURCE,TARGET>
extends AbstractConverter<SOURCE,TARGET>
implements PopulatorList<SOURCE,TARGET>
Populating converter that uses a list of configured populators to populate the target during conversion. Class used
to be but is no longer abstract. It allows to declare it as an abstract bean in Spring, otherwise we'd get
BeanInstantiationException.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the list of populators.voidPopulate the target instance from the source instance.voidvoidsetPopulators(List<Populator<SOURCE, TARGET>> populators) Set the list of populators.Methods inherited from class de.hybris.platform.converters.impl.AbstractConverter
afterPropertiesSet, convert, convert, createFromClass, createTarget, getMyBeanName, setBeanName, setTargetClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.servicelayer.dto.converter.Converter
convertAll, convertAllIgnoreExceptions, getLoggerMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
AbstractPopulatingConverter
public AbstractPopulatingConverter()
-
-
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()
-