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 Object
implements PageContentSlotConverterRegistry, org.springframework.beans.factory.InitializingBean
Default implementation of the
PageContentSlotConverterRegistry. This implementation uses
autowire-by-type to inject all beans implementing PageContentSlotConverterType.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected Set<PageContentSlotConverterType>getPageContentSlotConverterType(Class<? extends CMSRelationModel> classType) Get a specificPageContentSlotConverterTypeby class type.Get all elements in the registry.protected voidputOrUpdatePageContentSlot(PageContentSlotConverterType converterType) voidsetAllPageContentSlotConverterTypes(Set<PageContentSlotConverterType> allPageContentSlots)
-
Constructor Details
-
DefaultPageContentSlotConverterRegistry
public DefaultPageContentSlotConverterRegistry()
-
-
Method Details
-
getPageContentSlotConverterType
public Optional<PageContentSlotConverterType> getPageContentSlotConverterType(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
Description copied from interface:PageContentSlotConverterRegistryGet all elements in the registry.- Specified by:
getPageContentSlotConverterTypesin interfacePageContentSlotConverterRegistry- Returns:
- all items in the registry; never null
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
putOrUpdatePageContentSlot
-
getAllPageContentSlotConverterTypes
-
setAllPageContentSlotConverterTypes
public void setAllPageContentSlotConverterTypes(Set<PageContentSlotConverterType> allPageContentSlots)
-