Class StartStopServlet
- java.lang.Object
-
- net.sf.basedb.clients.web.servlet.StartStopServlet
-
- All Implemented Interfaces:
EventListener
,ServletContextListener
public class StartStopServlet extends Object implements ServletContextListener
Servlet listener for starting BASE when the web server is started and stopping BASE when the web server is stopped. This servlet is very simple. It will callApplication.start()
andExtensionsControl.init(javax.servlet.ServletContext)
when it is loaded andApplication.stop()
andExtensionsControl.close()
when it is destroyed.- Version:
- 2.8
- Author:
- nicklas
- Last modified
- $Date: 2021-01-20 13:18:30 +0100 (Wed, 20 Jan 2021) $
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description StartStopServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextDestroyed(ServletContextEvent ctx)
void
contextInitialized(ServletContextEvent ctx)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
contextInitialized
public void contextInitialized(ServletContextEvent ctx)
- Specified by:
contextInitialized
in interfaceServletContextListener
-
contextDestroyed
public void contextDestroyed(ServletContextEvent ctx)
- Specified by:
contextDestroyed
in interfaceServletContextListener
-
-