org.dspace.app.util
Class DSpaceContextListener

java.lang.Object
  extended by org.dspace.app.util.DSpaceContextListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class DSpaceContextListener
extends Object
implements javax.servlet.ServletContextListener

Class to initialize / cleanup resources used by DSpace when the web application is started or stopped


Field Summary
static String DSPACE_CONFIG_PARAMETER
          The DSpace config parameter, this is where the path to the DSpace configuration file can be obtained
 
Constructor Summary
DSpaceContextListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
          Clean up resources used by the application when stopped
 void contextInitialized(javax.servlet.ServletContextEvent event)
          Initialize any resources required by the application
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DSPACE_CONFIG_PARAMETER

public static final String DSPACE_CONFIG_PARAMETER
The DSpace config parameter, this is where the path to the DSpace configuration file can be obtained

See Also:
Constant Field Values
Constructor Detail

DSpaceContextListener

public DSpaceContextListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
Initialize any resources required by the application

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

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Clean up resources used by the application when stopped

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
Parameters:
event -


Copyright © 2010 DuraSpace. All Rights Reserved.