Class BackofficeApplicationContextInitializer

java.lang.Object
org.springframework.web.context.ContextLoader
org.springframework.web.context.ContextLoaderListener
de.hybris.platform.spring.HybrisContextLoaderListener
com.hybris.backoffice.BackofficeApplicationContextInitializer
All Implemented Interfaces:
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:
  • Constructor Details

    • BackofficeApplicationContextInitializer

      public BackofficeApplicationContextInitializer()
  • Method Details

    • 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
    • createWebApplicationContext

      protected org.springframework.web.context.WebApplicationContext createWebApplicationContext(javax.servlet.ServletContext servletContext)
      Overrides:
      createWebApplicationContext in class HybrisContextLoaderListener
    • 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(Map<String,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(String zkProperty, String value)