org.apache.shale.examples.sqlbrowser
Class Listener

java.lang.Object
  extended by org.apache.shale.examples.sqlbrowser.Listener
All Implemented Interfaces:
EventListener, ServletContextListener

public class Listener
extends Object
implements ServletContextListener

A servlet context listener that sets up the embedded example database.


Field Summary
static String INTERNAL_DATA_SOURCE
          The application scope attribute under which we store a data source for the embedded database.
 
Constructor Summary
Listener()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent event)
          Perform cleanup actions upon application shutdown.
 void contextInitialized(ServletContextEvent event)
          Perform setup actions upon application startup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERNAL_DATA_SOURCE

public static final String INTERNAL_DATA_SOURCE

The application scope attribute under which we store a data source for the embedded database.

See Also:
Constant Field Values
Constructor Detail

Listener

public Listener()
Method Detail

contextDestroyed

public void contextDestroyed(ServletContextEvent event)

Perform cleanup actions upon application shutdown.

Specified by:
contextDestroyed in interface ServletContextListener

contextInitialized

public void contextInitialized(ServletContextEvent event)

Perform setup actions upon application startup.

Specified by:
contextInitialized in interface ServletContextListener


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.