com.hack23.cia.web.common
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 com.hack23.cia.web.common.StaticContextLoaderListener
All Implemented Interfaces:
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
 
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
StaticContextLoaderListener()
          Instantiates a new static context loader listener.
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
protected 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()
Instantiates a new static context loader listener.

Method Detail

getWebApplicationContext

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

Returns:
the web application context

contextDestroyed

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

contextInitialized

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


Copyright © 2008-2009 www.hack23.com. All Rights Reserved.