com.dyuproject.web.rest
Class ApplicationServletContextListener

java.lang.Object
  extended by com.dyuproject.web.rest.ApplicationServletContextListener
All Implemented Interfaces:
EventListener, ServletContextListener

public final class ApplicationServletContextListener
extends Object
implements ServletContextListener

Loads a json config file and uses that for Inversion of Control.

Author:
David Yu
Date created:
Feb 25, 2009

Field Summary
static String CONTEXT_PARAM_RESOURCE_LOCATION
           
static String DEFAULT_RESOURCE_LOCATION
           
static String WEBCONTEXT_KEY
           
 
Constructor Summary
ApplicationServletContextListener()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent event)
           
 void contextInitialized(ServletContextEvent event)
           
 ApplicationContext getAppContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT_PARAM_RESOURCE_LOCATION

public static final String CONTEXT_PARAM_RESOURCE_LOCATION
See Also:
Constant Field Values

DEFAULT_RESOURCE_LOCATION

public static final String DEFAULT_RESOURCE_LOCATION
See Also:
Constant Field Values

WEBCONTEXT_KEY

public static final String WEBCONTEXT_KEY
See Also:
Constant Field Values
Constructor Detail

ApplicationServletContextListener

public ApplicationServletContextListener()
Method Detail

getAppContext

public ApplicationContext getAppContext()

contextDestroyed

public void contextDestroyed(ServletContextEvent event)
Specified by:
contextDestroyed in interface ServletContextListener

contextInitialized

public void contextInitialized(ServletContextEvent event)
Specified by:
contextInitialized in interface ServletContextListener


Copyright © 2008-2013. All Rights Reserved.