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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    clearFilteredPropertyDescriptorsCache(org.springframework.beans.factory.config.AutowireCapableBeanFactory autowireCapableBeanFactory)
     
    protected void
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PortalContextLoaderListener

      public PortalContextLoaderListener()
  • Method Details

    • getPortalServletContextName

      public static String getPortalServletContextName()
    • getPortalServletContextPath

      public static String getPortalServletContextPath()
    • contextDestroyed

      public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
      Specified by:
      contextDestroyed in interface javax.servlet.ServletContextListener
      Overrides:
      contextDestroyed in class org.springframework.web.context.ContextLoaderListener
    • contextInitialized

      public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
      Specified by:
      contextInitialized in interface javax.servlet.ServletContextListener
      Overrides:
      contextInitialized in class org.springframework.web.context.ContextLoaderListener
    • clearFilteredPropertyDescriptorsCache

      protected void clearFilteredPropertyDescriptorsCache(org.springframework.beans.factory.config.AutowireCapableBeanFactory autowireCapableBeanFactory)
    • closeDataSource

      protected void closeDataSource(DataSource dataSource)
    • customizeContext

      protected void customizeContext(javax.servlet.ServletContext servletContext, org.springframework.web.context.ConfigurableWebApplicationContext configurableWebApplicationContext)
      Overrides:
      customizeContext in class org.springframework.web.context.ContextLoader