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:
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:
-
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_KEYFields inherited from class org.springframework.web.context.ContextLoader
CONFIG_LOCATION_PARAM, CONTEXT_CLASS_PARAM, CONTEXT_ID_PARAM, CONTEXT_INITIALIZER_CLASSES_PARAM, GLOBAL_INITIALIZER_CLASSES_PARAM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyZKProperty(String zkProperty, String value) protected voidapplyZKSettingByConvention(Map<String, 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, startRegistryMethods inherited from class org.springframework.web.context.ContextLoaderListener
contextDestroyedMethods inherited from class org.springframework.web.context.ContextLoader
closeWebApplicationContext, configureAndRefreshWebApplicationContext, determineContextClass, determineContextInitializerClasses, getCurrentWebApplicationContext, setContextInitializers
-
Constructor Details
-
BackofficeApplicationContextInitializer
public BackofficeApplicationContextInitializer()
-
-
Method Details
-
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
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
-