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 call
Application.start()
and ExtensionsControl.init(javax.servlet.ServletContext)
when it is loaded and Application.stop()
and ExtensionsControl.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
Modifier and Type Method Description void
contextDestroyed(ServletContextEvent ctx)
void
contextInitialized(ServletContextEvent ctx)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
-
Constructor Details
-
StartStopServlet
public StartStopServlet()
-
-
Method Details
-
contextInitialized
- Specified by:
contextInitialized
in interfaceServletContextListener
-
contextDestroyed
- Specified by:
contextDestroyed
in interfaceServletContextListener
-