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 void
clearFilteredPropertyDescriptorsCache
(org.springframework.beans.factory.config.AutowireCapableBeanFactory autowireCapableBeanFactory) protected void
closeDataSource
(DataSource dataSource) void
contextDestroyed
(javax.servlet.ServletContextEvent servletContextEvent) void
contextInitialized
(javax.servlet.ServletContextEvent servletContextEvent) protected void
customizeContext
(javax.servlet.ServletContext servletContext, org.springframework.web.context.ConfigurableWebApplicationContext configurableWebApplicationContext) static String
static String
Methods 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:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
- Overrides:
contextDestroyed
in classorg.springframework.web.context.ContextLoaderListener
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent) - Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
- Overrides:
contextInitialized
in 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:
customizeContext
in classorg.springframework.web.context.ContextLoader
-