Class ApplicationListener

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

public class ApplicationListener extends Object implements javax.servlet.ServletContextListener, javax.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(javax.servlet.ServletContextEvent sce)
      Specified by:
      contextDestroyed in interface javax.servlet.ServletContextListener
    • onShutdown

      public static void onShutdown()
    • contextInitialized

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

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

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