|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.initializer.Startup
Convenience class designed to run initializers. Either manually specify the values for web app root and script name, or set java properties with names WEB_APP_ROOT or SCRIPT_NAME.
Field Summary | |
static String |
SCRIPT_NAME
The name of the property containing the script name |
static String |
versionId
|
static String |
WEB_APP_ROOT
The name of the property containing the web app root |
Constructor Summary | |
Startup()
Wrapper for Startup(String, String) which looks for
the system properties named WEB_APP_ROOT and SCRIPT_NAME. |
|
Startup(String webAppRoot,
String scriptName)
Sets up environment variables. |
Method Summary | |
void |
destroy()
Shut down the startup script. |
Set |
init()
Starts up the web environment for the ACS. |
void |
setLastInitializer(String lastInitializer)
Sets the name of the last initializer to run. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
public static final String WEB_APP_ROOT
public static final String SCRIPT_NAME
Constructor Detail |
public Startup(String webAppRoot, String scriptName)
String scriptName = "/WEB-INF/resources/enterprise.init"; String webAppRoot = "/usr/local/jakarta-tomcat-3.2.3/webapps/enterprise"; Startup startup = new Startup(webAppRoot, scriptName); startup.init();
webAppRoot
- The web app root to use (e.g. $TOMCAT_HOME/webapps/enterprise);scriptName
- The relative (from web app root) path to the
script that defines the initializers
(e.g. /WEB-INF/resources/enterprise.init)public Startup() throws InitializationException
Startup(String, String)
which looks for
the system properties named WEB_APP_ROOT and SCRIPT_NAME.
InitializationException
- If we cannot find either property.Method Detail |
public void setLastInitializer(String lastInitializer)
lastInitializer
- The name of the last initializer to run
(e.g. com.arsdigita.persistence.Initializer)public Set init() throws InitializationException
InitializationException
public void destroy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |