org.apache.catalina.startup

Class Bootstrap

public final class Bootstrap extends Object

Boostrap loader for Catalina. This application constructs a class loader for use in loading the Catalina internal classes (by accumulating all of the JAR files found in the "server" directory under "catalina.home"), and starts the regular execution of the container. The purpose of this roundabout approach is to keep the Catalina internal classes (and any other classes they depend on, such as an XML parser) out of the system class path and therefore not visible to application level classes.

Version: $Revision: 832231 $ $Date: 2009-11-03 01:45:56 +0100 (Tue, 03 Nov 2009) $

Author: Craig R. McClanahan Remy Maucherat

Field Summary
protected ClassLoadercatalinaLoader
protected ClassLoadercommonLoader
protected static StringCATALINA_BASE_TOKEN
protected static StringCATALINA_HOME_TOKEN
protected ClassLoadersharedLoader
Method Summary
voiddestroy()
Destroy the Catalina Daemon.
booleangetAwait()
static StringgetCatalinaBase()
Get the value of the catalina.base environment variable.
static StringgetCatalinaHome()
Get the value of the catalina.home environment variable.
voidinit()
Initialize daemon.
voidinit(String[] arguments)
Load the Catalina daemon.
static voidmain(String[] args)
Main method, used for testing only.
voidsetAwait(boolean await)
Set flag.
voidsetCatalinaBase(String s)
voidsetCatalinaHome(String s)
voidstart()
Start the Catalina daemon.
voidstop()
Stop the Catalina Daemon.
voidstopServer()
Stop the standlone server.
voidstopServer(String[] arguments)
Stop the standlone server.

Field Detail

catalinaLoader

protected ClassLoader catalinaLoader

commonLoader

protected ClassLoader commonLoader

CATALINA_BASE_TOKEN

protected static final String CATALINA_BASE_TOKEN

CATALINA_HOME_TOKEN

protected static final String CATALINA_HOME_TOKEN

sharedLoader

protected ClassLoader sharedLoader

Method Detail

destroy

public void destroy()
Destroy the Catalina Daemon.

getAwait

public boolean getAwait()

getCatalinaBase

public static String getCatalinaBase()
Get the value of the catalina.base environment variable.

getCatalinaHome

public static String getCatalinaHome()
Get the value of the catalina.home environment variable.

init

public void init()
Initialize daemon.

init

public void init(String[] arguments)
Load the Catalina daemon.

main

public static void main(String[] args)
Main method, used for testing only.

Parameters: args Command line arguments to be processed

setAwait

public void setAwait(boolean await)
Set flag.

setCatalinaBase

public void setCatalinaBase(String s)

setCatalinaHome

public void setCatalinaHome(String s)

start

public void start()
Start the Catalina daemon.

stop

public void stop()
Stop the Catalina Daemon.

stopServer

public void stopServer()
Stop the standlone server.

stopServer

public void stopServer(String[] arguments)
Stop the standlone server.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.