Package org.dspace.app.util
Class DSpaceContextListener
java.lang.Object
org.dspace.app.util.DSpaceContextListener
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener,EventListener
Class to initialize / cleanup resources used by DSpace when the web application
is started or stopped.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextDestroyed(jakarta.servlet.ServletContextEvent event) Clean up resources used by the application when stoppedvoidcontextInitialized(jakarta.servlet.ServletContextEvent event) Initialize any resources required by the application.
-
Constructor Details
-
DSpaceContextListener
public DSpaceContextListener()
-
-
Method Details
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent event) Initialize any resources required by the application.- Specified by:
contextInitializedin interfacejakarta.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(jakarta.servlet.ServletContextEvent event) Clean up resources used by the application when stopped- Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener- Parameters:
event- 8 Event class for notifications about changes to the servlet context of a web application.
-