Package com.hybris.backoffice
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:
java.util.EventListener,javax.servlet.http.HttpSessionListener,javax.servlet.ServletContextListener
public class BackofficeApplicationContextInitializer extends HybrisContextLoaderListener implements javax.servlet.http.HttpSessionListener
AServletContextListenerthat initializes application context for Backoffice.- See Also:
BackofficeApplicationContext
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.spring.HybrisContextLoaderListener
ADDITIONAL_WEB_SPRING_CONFIGS, ADDITIONAL_WEB_SPRING_CONFIGS_FROM_EXT, CORE_SPRING_DEVELOPMENT_MODE_FLAG_KEY, WEB_SPRING_DEVELOPMENT_MODE_FLAG_KEY
-
-
Constructor Summary
Constructors Constructor Description BackofficeApplicationContextInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyZKProperty(java.lang.String zkProperty, java.lang.String value)protected voidapplyZKSettingByConvention(java.util.Map<java.lang.String,java.lang.String> properties)All settings prefixed withZK_LIBRARY_SETTING_PREFIXwill 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.voidcontextInitialized(javax.servlet.ServletContextEvent event)protected org.springframework.web.context.WebApplicationContextcreateDefaultWebApplicationContext(javax.servlet.ServletContext servletContext)protected org.springframework.web.context.WebApplicationContextcreateWebApplicationContext(javax.servlet.ServletContext servletContext)voidsessionCreated(javax.servlet.http.HttpSessionEvent httpSessionEvent)voidsessionDestroyed(javax.servlet.http.HttpSessionEvent httpSessionEvent)-
Methods inherited from class de.hybris.platform.spring.HybrisContextLoaderListener
addCustomConfigLocations, adjustTenant, attachTenantIDToServletContext, contextInitializedInternal, customizeContext, doInitWebApplicationContext, fillConfigLocations, fillConfigLocationsFromExtension, fillConfigLocationsFromExtensions, fillConfigLocationsFromParameter, fillLegacyConfigLocations, getTenanId, getTenantIDForWebapp, initWebApplicationContext, loadParentContext, readConfigParameter, registerHttpSessionListener, runWithActiveJaloSession, runWithTenant, startRegistry
-
-
-
-
Method Detail
-
sessionCreated
public void sessionCreated(javax.servlet.http.HttpSessionEvent httpSessionEvent)
- Specified by:
sessionCreatedin interfacejavax.servlet.http.HttpSessionListener
-
sessionDestroyed
public void sessionDestroyed(javax.servlet.http.HttpSessionEvent httpSessionEvent)
- Specified by:
sessionDestroyedin interfacejavax.servlet.http.HttpSessionListener
-
createWebApplicationContext
protected org.springframework.web.context.WebApplicationContext createWebApplicationContext(javax.servlet.ServletContext servletContext)
- Overrides:
createWebApplicationContextin classHybrisContextLoaderListener
-
createDefaultWebApplicationContext
protected org.springframework.web.context.WebApplicationContext createDefaultWebApplicationContext(javax.servlet.ServletContext servletContext)
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener- Overrides:
contextInitializedin classHybrisContextLoaderListener
-
applyZKSettingByConvention
protected void applyZKSettingByConvention(java.util.Map<java.lang.String,java.lang.String> properties)
All settings prefixed withZK_LIBRARY_SETTING_PREFIXwill 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).
MethodLibrary.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)
-
-