DJDoc v.1.0.0b-1

net.sf.djdoc.servlet
Class StartupServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.sf.djdoc.servlet.StartupServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class StartupServlet
extends javax.servlet.http.HttpServlet

The StartupServlet class serves purely as an initialization class reading configuration files and setting up other parts of the web application such as logging, persistence engine etc. Its initialization parameters are configured in the web.xml file where this servlet is configured with a positve load-on-startup value.

See Also:
Serialized Form

Constructor Summary
StartupServlet()
           
 
Method Summary
 void destroy()
          This method performs uninitialization work necessary when the web application server is shut down.
 void init()
          This method performs all necessary initialization.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartupServlet

public StartupServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
This method performs all necessary initialization.

Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

destroy

public void destroy()
This method performs uninitialization work necessary when the web application server is shut down. This includes the stopping of the API configuration monitor thread and the disconnection of the Hibernate connections.

Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

DJDoc v.1.0.0b-1