org.directdemocracyportal.democracy.web
Class StaticContextLoaderListener

Package class diagram package StaticContextLoaderListener
java.lang.Object
  extended by org.springframework.web.context.ContextLoader
      extended by org.springframework.web.context.ContextLoaderListener
          extended by org.directdemocracyportal.democracy.web.StaticContextLoaderListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public class StaticContextLoaderListener
extends org.springframework.web.context.ContextLoaderListener

The listener interface for receiving staticContextLoader events. The class that is interested in processing a staticContextLoader event implements this interface, and the object created with that class is registered with a component using the component's addStaticContextLoaderListener method. When the staticContextLoader event occurs, that object's appropriate method is invoked.

See Also:
StaticContextLoaderEvent

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class org.springframework.web.context.ContextLoader
CONFIG_LOCATION_PARAM, CONTEXT_CLASS_PARAM, LOCATOR_FACTORY_KEY_PARAM, LOCATOR_FACTORY_SELECTOR_PARAM
 
Constructor Summary
Constructor and Description
StaticContextLoaderListener()
           
 
Method Summary
Modifier and Type Method and Description
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
static org.springframework.web.context.WebApplicationContext getWebApplicationContext()
          Gets the web application context.
 
Methods inherited from class org.springframework.web.context.ContextLoaderListener
createContextLoader, getContextLoader
 
Methods inherited from class org.springframework.web.context.ContextLoader
closeWebApplicationContext, createWebApplicationContext, customizeContext, determineContextClass, getCurrentWebApplicationContext, initWebApplicationContext, loadParentContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticContextLoaderListener

public StaticContextLoaderListener()
Method Detail

contextInitialized

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

contextDestroyed

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

getWebApplicationContext

public static org.springframework.web.context.WebApplicationContext getWebApplicationContext()
Gets the web application context.

Returns:
the web application context


Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.