Class ApplicationListener

java.lang.Object
com.logicaldoc.web.listener.ApplicationListener
All Implemented Interfaces:
jakarta.servlet.http.HttpSessionListener, jakarta.servlet.ServletContextListener, EventListener

public class ApplicationListener extends Object implements jakarta.servlet.ServletContextListener, jakarta.servlet.http.HttpSessionListener
Listener that initializes relevant system stuffs during application startup and session life cycle.
Since:
3.0
Author:
Alessandro Gasparini - LogicalDOC
  • Constructor Details

    • ApplicationListener

      public ApplicationListener()
  • Method Details

    • isRestartRequired

      public static boolean isRestartRequired()
    • restartRequired

      public static void restartRequired()
    • contextDestroyed

      public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextDestroyed in interface jakarta.servlet.ServletContextListener
    • onShutdown

      public static void onShutdown()
    • contextInitialized

      public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
    • sessionCreated

      public void sessionCreated(jakarta.servlet.http.HttpSessionEvent event)
      Specified by:
      sessionCreated in interface jakarta.servlet.http.HttpSessionListener
    • sessionDestroyed

      public void sessionDestroyed(jakarta.servlet.http.HttpSessionEvent event)
      Frees temporary upload folders.
      Specified by:
      sessionDestroyed in interface jakarta.servlet.http.HttpSessionListener