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 Details

    • DSpaceContextListener

      public DSpaceContextListener()
  • Method Details

    • 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 - 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:
      contextDestroyed in interface javax.servlet.ServletContextListener
      Parameters:
      event - 8 Event class for notifications about changes to the servlet context of a web application.