org.dspace.app.util
Class DSpaceContextListener
java.lang.Object
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 |
|
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 |
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
DSpaceContextListener
public DSpaceContextListener()
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 © 2011 DuraSpace. All Rights Reserved.