Package com.logicaldoc.web.listener
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextDestroyed
(javax.servlet.ServletContextEvent sce) void
contextInitialized
(javax.servlet.ServletContextEvent sce) static boolean
static void
static void
void
sessionCreated
(javax.servlet.http.HttpSessionEvent event) void
sessionDestroyed
(javax.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(javax.servlet.ServletContextEvent sce) - Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
onShutdown
public static void onShutdown() -
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce) - Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
sessionCreated
public void sessionCreated(javax.servlet.http.HttpSessionEvent event) - Specified by:
sessionCreated
in interfacejavax.servlet.http.HttpSessionListener
-
sessionDestroyed
public void sessionDestroyed(javax.servlet.http.HttpSessionEvent event) Frees temporary upload folders.- Specified by:
sessionDestroyed
in interfacejavax.servlet.http.HttpSessionListener
-