Package com.acumenvelocity.ath.common
Class AthServletContextListener
- java.lang.Object
-
- com.acumenvelocity.ath.common.AthServletContextListener
-
- All Implemented Interfaces:
EventListener,javax.servlet.ServletContextListener
public class AthServletContextListener extends Object implements javax.servlet.ServletContextListener
ServletContextListener implementation for the ATH (Acumen Velocity Translation Hub) application. This listener handles servlet context lifecycle events, allowing for initialization and cleanup operations when the web application starts up or shuts down.This class provides hooks for:
- Application startup initialization (contextInitialized)
- Application shutdown cleanup (contextDestroyed)
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Acumen Velocity
-
-
Constructor Summary
Constructors Constructor Description AthServletContextListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextDestroyed(javax.servlet.ServletContextEvent sce)Called when the servlet context is destroyed (i.e., when the web application shuts down).voidcontextInitialized(javax.servlet.ServletContextEvent sce)Called when the servlet context is initialized (i.e., when the web application starts).
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
Called when the servlet context is initialized (i.e., when the web application starts). This method can be used to perform startup tasks such as:- Initializing application-wide resources
- Setting up database connections
- Loading configuration data
- Starting background services
- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener- Parameters:
sce- the ServletContextEvent containing the ServletContext that was initialized
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
Called when the servlet context is destroyed (i.e., when the web application shuts down). This method can be used to perform cleanup tasks such as:- Closing database connections
- Shutting down thread pools
- Releasing system resources
- Persisting application state
- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener- Parameters:
sce- the ServletContextEvent containing the ServletContext that is being destroyed
-
-