Class BackofficeApplicationContextInitializer

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionListener, javax.servlet.ServletContextListener

    public class BackofficeApplicationContextInitializer
    extends HybrisContextLoaderListener
    implements javax.servlet.http.HttpSessionListener
    A ServletContextListener that initializes application context for Backoffice.
    See Also:
    BackofficeApplicationContext
    • Constructor Detail

      • BackofficeApplicationContextInitializer

        public BackofficeApplicationContextInitializer()
    • Method Detail

      • sessionCreated

        public void sessionCreated​(javax.servlet.http.HttpSessionEvent httpSessionEvent)
        Specified by:
        sessionCreated in interface javax.servlet.http.HttpSessionListener
      • sessionDestroyed

        public void sessionDestroyed​(javax.servlet.http.HttpSessionEvent httpSessionEvent)
        Specified by:
        sessionDestroyed in interface javax.servlet.http.HttpSessionListener
      • createDefaultWebApplicationContext

        protected org.springframework.web.context.WebApplicationContext createDefaultWebApplicationContext​(javax.servlet.ServletContext servletContext)
      • contextInitialized

        public void contextInitialized​(javax.servlet.ServletContextEvent event)
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
        Overrides:
        contextInitialized in class HybrisContextLoaderListener
      • applyZKSettingByConvention

        protected void applyZKSettingByConvention​(java.util.Map<java.lang.String,​java.lang.String> properties)
        All settings prefixed with ZK_LIBRARY_SETTING_PREFIX will be applied on ZK Library, by convention the prefix will be removed and the trailing part of the key will be used as property name. The value will be used as provided (no conversions).
        Method Library.setProperty(String, String) is called to set the properties on ZK engine.
        Parameters:
        properties - application setting map
      • applyZKProperty

        protected void applyZKProperty​(java.lang.String zkProperty,
                                       java.lang.String value)