com.scooterframework.admin
Class WebApplicationStartListener

java.lang.Object
  extended by com.scooterframework.admin.WebApplicationStartListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public class WebApplicationStartListener
extends java.lang.Object
implements javax.servlet.ServletContextListener

This class kicks off ApplicationConfig class.


Constructor Summary
WebApplicationStartListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent ce)
           
 void contextInitialized(javax.servlet.ServletContextEvent ce)
          Initializes context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebApplicationStartListener

public WebApplicationStartListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent ce)

Initializes context. Specifically it starts up the application through ApplicationConfig.configInstanceForWeb(rootPath, contextName).startApplication().

The rootPath is derived from the real path of the servlet context.

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
Parameters:
ce - ServletContextEvent

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent ce)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener