Class AddOnCMSComponentRendererRegistry
java.lang.Object
de.hybris.platform.acceleratorcms.component.renderer.impl.DefaultCMSComponentRendererRegistry
de.hybris.platform.addonsupport.renderer.impl.AddOnCMSComponentRendererRegistry
- All Implemented Interfaces:
CMSComponentRenderer,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
public class AddOnCMSComponentRendererRegistry
extends DefaultCMSComponentRendererRegistry
implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
Extends the storefront CMS Component Registry so AddOns can easily declare additional CMS Component Renderer Mappings
by registering existing beans of type
AddOnCMSComponentRendererMapping
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetFailOnInvalidRendererMappings(boolean failOnInvalidRendererMappings) protected voidvalidateTypeCode(String code) Methods inherited from class de.hybris.platform.acceleratorcms.component.renderer.impl.DefaultCMSComponentRendererRegistry
getDefaultCmsComponentRenderer, getRenderers, getTypeService, handleException, renderComponent, setDefaultCmsComponentRenderer, setRenderers, setTypeService
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
AddOnCMSComponentRendererRegistry
public AddOnCMSComponentRendererRegistry()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
validateTypeCode
-
isFailOnInvalidRendererMappings
public boolean isFailOnInvalidRendererMappings() -
setFailOnInvalidRendererMappings
public void setFailOnInvalidRendererMappings(boolean failOnInvalidRendererMappings)
-