org.activemath.webapp.servlets
Class ActivemathServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.activemath.webapp.servlets.ActivemathServlet
All Implemented Interfaces:
Serializable, EventListener, Servlet, ServletConfig, ServletContextListener

public class ActivemathServlet
extends HttpServlet
implements ServletContextListener

ActiveMath Init servlet

See Also:
Serialized Form

Field Summary
protected static Logger log
           
 
Constructor Summary
ActivemathServlet()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent arg0)
           
 void contextInitialized(ServletContextEvent arg0)
           
 void init()
          This method triggers application wide initialisation.
 
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
destroy, 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
 

Field Detail

log

protected static Logger log
Constructor Detail

ActivemathServlet

public ActivemathServlet()
Method Detail

init

public void init()
          throws ServletException
This method triggers application wide initialisation. We initialize our most important singletons (in some sensible order). NOTE: If init fails, we call System.exit() (via Manager.reportFatalError())!!!

Overrides:
init in class GenericServlet
Throws:
ServletException

contextInitialized

public void contextInitialized(ServletContextEvent arg0)
Specified by:
contextInitialized in interface ServletContextListener

contextDestroyed

public void contextDestroyed(ServletContextEvent arg0)
Specified by:
contextDestroyed in interface ServletContextListener