net.sf.basedb.clients.web.servlet
Class StartStopServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.sf.basedb.clients.web.servlet.StartStopServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class StartStopServlet
- extends HttpServlet
Servlet 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()
when it is loaded and
Application.stop()
when it is destroyed.
This servlet should be configured to load before any other servlet that
use BASE classes.
- Version:
- 2.8
- Author:
- nicklas
- See Also:
- Serialized Form
- Last modified
- $Date: 2008-09-11 22:05:50 +0200 (Thu, 11 Sep 2008) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
StartStopServlet
public StartStopServlet()
init
public void init()
throws ServletException
- Calls
Application.start()
.
- Overrides:
init
in class GenericServlet
- Throws:
ServletException
destroy
public void destroy()
- Calls
Application.stop()
.
- Specified by:
destroy
in interface Servlet
- Overrides:
destroy
in class GenericServlet