Class DefaultPageContentSlotConverterRegistry
- java.lang.Object
-
- de.hybris.platform.cmsfacades.pagescontentslots.service.impl.DefaultPageContentSlotConverterRegistry
-
- All Implemented Interfaces:
PageContentSlotConverterRegistry,org.springframework.beans.factory.InitializingBean
public class DefaultPageContentSlotConverterRegistry extends java.lang.Object implements PageContentSlotConverterRegistry, org.springframework.beans.factory.InitializingBean
Default implementation of thePageContentSlotConverterRegistry. This implementation uses autowire-by-type to inject all beans implementingPageContentSlotConverterType.
-
-
Constructor Summary
Constructors Constructor Description DefaultPageContentSlotConverterRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected java.util.Set<PageContentSlotConverterType>getAllPageContentSlotConverterTypes()java.util.Optional<PageContentSlotConverterType>getPageContentSlotConverterType(java.lang.Class<? extends CMSRelationModel> classType)Get a specificPageContentSlotConverterTypeby class type.java.util.Collection<PageContentSlotConverterType>getPageContentSlotConverterTypes()Get all elements in the registry.protected voidputOrUpdatePageContentSlot(PageContentSlotConverterType converterType)voidsetAllPageContentSlotConverterTypes(java.util.Set<PageContentSlotConverterType> allPageContentSlots)
-
-
-
Method Detail
-
getPageContentSlotConverterType
public java.util.Optional<PageContentSlotConverterType> getPageContentSlotConverterType(java.lang.Class<? extends CMSRelationModel> classType)
Description copied from interface:PageContentSlotConverterRegistryGet a specificPageContentSlotConverterTypeby class type.- Specified by:
getPageContentSlotConverterTypein interfacePageContentSlotConverterRegistry- Parameters:
classType- - the class type of the element to retrieve from the registry- Returns:
- the element matching the class type
-
getPageContentSlotConverterTypes
public java.util.Collection<PageContentSlotConverterType> getPageContentSlotConverterTypes()
Description copied from interface:PageContentSlotConverterRegistryGet all elements in the registry.- Specified by:
getPageContentSlotConverterTypesin interfacePageContentSlotConverterRegistry- Returns:
- all items in the registry; never null
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
putOrUpdatePageContentSlot
protected void putOrUpdatePageContentSlot(PageContentSlotConverterType converterType)
-
getAllPageContentSlotConverterTypes
protected java.util.Set<PageContentSlotConverterType> getAllPageContentSlotConverterTypes()
-
setAllPageContentSlotConverterTypes
public void setAllPageContentSlotConverterTypes(java.util.Set<PageContentSlotConverterType> allPageContentSlots)
-
-