Class DSpaceContextListener

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

public class DSpaceContextListener extends Object implements jakarta.servlet.ServletContextListener
Class to initialize / cleanup resources used by DSpace when the web application is started or stopped.
  • Constructor Details

    • DSpaceContextListener

      public DSpaceContextListener()
  • Method Details

    • contextInitialized

      public void contextInitialized(jakarta.servlet.ServletContextEvent event)
      Initialize any resources required by the application.
      Specified by:
      contextInitialized in interface jakarta.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:
      contextDestroyed in interface jakarta.servlet.ServletContextListener
      Parameters:
      event - 8 Event class for notifications about changes to the servlet context of a web application.