Class 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 Detail

      • applicationContext

        protected org.springframework.context.ApplicationContext applicationContext
    • Constructor Detail

      • AddOnCMSComponentRendererRegistry

        public AddOnCMSComponentRendererRegistry()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • validateTypeCode

        protected void validateTypeCode​(java.lang.String code)
      • isFailOnInvalidRendererMappings

        public boolean isFailOnInvalidRendererMappings()
      • setFailOnInvalidRendererMappings

        public void setFailOnInvalidRendererMappings​(boolean failOnInvalidRendererMappings)