Package 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.
-
-
Constructor Summary
Constructors Constructor Description DSpaceContextListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextDestroyed(javax.servlet.ServletContextEvent event)Clean up resources used by the application when stoppedvoidcontextInitialized(javax.servlet.ServletContextEvent event)Initialize any resources required by the application.
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
Initialize any resources required by the application.- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener- Parameters:
event- This is the event class for notifications about changes to the servlet context of a web application.
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
Clean up resources used by the application when stopped- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener- Parameters:
event- 8 Event class for notifications about changes to the servlet context of a web application.
-
-