DJDoc v.1.0.0b-1

Class StartupServlet

  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.sf.djdoc.servlet.StartupServlet
All Implemented Interfaces:, 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
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


public StartupServlet()
Method Detail


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

init in class javax.servlet.GenericServlet


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
destroy in class javax.servlet.GenericServlet

DJDoc v.1.0.0b-1