Class PortalContextLoaderListener
Object
org.springframework.web.context.ContextLoader
org.springframework.web.context.ContextLoaderListener
com.liferay.portal.spring.context.PortalContextLoaderListener
- All Implemented Interfaces:
EventListener,javax.servlet.ServletContextListener
public class PortalContextLoaderListener
extends org.springframework.web.context.ContextLoaderListener
- Author:
- Michael Young, Shuyang Zhou, Raymond Augé
-
Field Summary
Fields 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 voidclearFilteredPropertyDescriptorsCache(org.springframework.beans.factory.config.AutowireCapableBeanFactory autowireCapableBeanFactory) protected voidcloseDataSource(DataSource dataSource) voidcontextDestroyed(javax.servlet.ServletContextEvent servletContextEvent) voidcontextInitialized(javax.servlet.ServletContextEvent servletContextEvent) protected voidcustomizeContext(javax.servlet.ServletContext servletContext, org.springframework.web.context.ConfigurableWebApplicationContext configurableWebApplicationContext) static Stringstatic StringMethods inherited from class org.springframework.web.context.ContextLoader
closeWebApplicationContext, configureAndRefreshWebApplicationContext, createWebApplicationContext, determineContextClass, determineContextInitializerClasses, getCurrentWebApplicationContext, initWebApplicationContext, loadParentContext, setContextInitializers
-
Constructor Details
-
PortalContextLoaderListener
public PortalContextLoaderListener()
-
-
Method Details
-
getPortalServletContextName
-
getPortalServletContextPath
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent) - Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener- Overrides:
contextDestroyedin classorg.springframework.web.context.ContextLoaderListener
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent) - Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener- Overrides:
contextInitializedin classorg.springframework.web.context.ContextLoaderListener
-
clearFilteredPropertyDescriptorsCache
protected void clearFilteredPropertyDescriptorsCache(org.springframework.beans.factory.config.AutowireCapableBeanFactory autowireCapableBeanFactory) -
closeDataSource
-
customizeContext
protected void customizeContext(javax.servlet.ServletContext servletContext, org.springframework.web.context.ConfigurableWebApplicationContext configurableWebApplicationContext) - Overrides:
customizeContextin classorg.springframework.web.context.ContextLoader
-