Class DefaultAttributePopulatorsProvider
- java.lang.Object
-
- de.hybris.platform.cmsfacades.types.service.impl.DefaultAttributePopulatorsProvider
-
- All Implemented Interfaces:
AttributePopulatorsProvider,org.springframework.beans.factory.InitializingBean
public class DefaultAttributePopulatorsProvider extends java.lang.Object implements AttributePopulatorsProvider, org.springframework.beans.factory.InitializingBean
-
-
Constructor Summary
Constructors Constructor Description DefaultAttributePopulatorsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()merge the registry overrides into the attributePredicatePopulatorListMapjava.util.List<Populator<AttributeDescriptorModel,ComponentTypeAttributeData>>getAttributePopulators(AttributeDescriptorModel attributeDescriptor)Given an attribute descriptor model, return the list of Populators for this attribute type defined in the configuration map.protected java.util.Map<java.util.function.Predicate<AttributeDescriptorModel>,java.util.List<Populator<AttributeDescriptorModel,ComponentTypeAttributeData>>>getAttributePredicatePopulatorListMap()protected ComponentTypeStructureRegistrygetComponentTypeStructureRegistry()voidsetAttributePredicatePopulatorListMap(java.util.Map<java.util.function.Predicate<AttributeDescriptorModel>,java.util.List<Populator<AttributeDescriptorModel,ComponentTypeAttributeData>>> attributePredicatePopulatorListMap)voidsetComponentTypeStructureRegistry(ComponentTypeStructureRegistry componentTypeStructureRegistry)
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exceptionmerge the registry overrides into the attributePredicatePopulatorListMap- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
getAttributePopulators
public java.util.List<Populator<AttributeDescriptorModel,ComponentTypeAttributeData>> getAttributePopulators(AttributeDescriptorModel attributeDescriptor)
Description copied from interface:AttributePopulatorsProviderGiven an attribute descriptor model, return the list of Populators for this attribute type defined in the configuration map.- Specified by:
getAttributePopulatorsin interfaceAttributePopulatorsProvider- Parameters:
attributeDescriptor- the attribute that will be tested to look for populators.- Returns:
- the list of populators.
-
getAttributePredicatePopulatorListMap
protected java.util.Map<java.util.function.Predicate<AttributeDescriptorModel>,java.util.List<Populator<AttributeDescriptorModel,ComponentTypeAttributeData>>> getAttributePredicatePopulatorListMap()
-
setAttributePredicatePopulatorListMap
public void setAttributePredicatePopulatorListMap(java.util.Map<java.util.function.Predicate<AttributeDescriptorModel>,java.util.List<Populator<AttributeDescriptorModel,ComponentTypeAttributeData>>> attributePredicatePopulatorListMap)
-
setComponentTypeStructureRegistry
public void setComponentTypeStructureRegistry(ComponentTypeStructureRegistry componentTypeStructureRegistry)
-
getComponentTypeStructureRegistry
protected ComponentTypeStructureRegistry getComponentTypeStructureRegistry()
-
-