com.arsdigita.acs
Class StartupLoader

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--com.arsdigita.acs.StartupLoader
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class StartupLoader
extends javax.servlet.http.HttpServlet

Servlet that is loaded on startup by the servlet engine, and then iterates over all available classes. For each class whose name is "*Init," does a Class.forName() to make the static initializer run.

See Also:
Serialized Form

Constructor Summary
StartupLoader()
           
 
Method Summary
 void init()
          iterates over all available classes.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, 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
 

Constructor Detail

StartupLoader

public StartupLoader()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
iterates over all available classes. For each class whose name is "*Init," does a Class.forName() to make the static initializer run.

Searches in $ACS_JAVA/WEB-INF/classes and $ACS_JAVA/lib/*.jar.

Overrides:
init in class javax.servlet.GenericServlet