Package com.logicaldoc.web.listener
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextDestroyed(jakarta.servlet.ServletContextEvent sce) voidcontextInitialized(jakarta.servlet.ServletContextEvent sce) static booleanstatic voidstatic voidvoidsessionCreated(jakarta.servlet.http.HttpSessionEvent event) voidsessionDestroyed(jakarta.servlet.http.HttpSessionEvent event) Frees temporary upload folders.
-
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:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-
onShutdown
public static void onShutdown() -
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener
-
sessionCreated
public void sessionCreated(jakarta.servlet.http.HttpSessionEvent event) - Specified by:
sessionCreatedin interfacejakarta.servlet.http.HttpSessionListener
-
sessionDestroyed
public void sessionDestroyed(jakarta.servlet.http.HttpSessionEvent event) Frees temporary upload folders.- Specified by:
sessionDestroyedin interfacejakarta.servlet.http.HttpSessionListener
-