org.apache.catalina.startup

Class Bootstrap


public final class Bootstrap
extends java.lang.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: 1.18.2.1 $ $Date: 2004/08/21 19:31:56 $

Authors:
Craig R. McClanahan
Remy Maucherat

Field Summary

protected static String
CATALINA_BASE_TOKEN
protected static String
CATALINA_HOME_TOKEN
protected ClassLoader
catalinaLoader
protected ClassLoader
commonLoader
protected int
debug
Debugging detail level for processing the startup.
protected ClassLoader
sharedLoader

Method Summary

void
destroy()
Destroy the Catalina Daemon.
boolean
getAwait()
static String
getCatalinaBase()
Get the value of the catalina.base environment variable.
static String
getCatalinaHome()
Get the value of the catalina.home environment variable.
void
init()
Initialize daemon.
void
init(String[] arguments)
Load the Catalina daemon.
protected static void
log(String message)
Log a debugging detail message.
protected static void
log(String message, Throwable exception)
Log a debugging detail message with an exception.
static void
main(args[] )
Main method, used for testing only.
void
setAwait(boolean await)
Set flag.
void
setCatalinaBase(String s)
void
setCatalinaHome(String s)
void
start()
Start the Catalina daemon.
void
stop()
Stop the Catalina Daemon.
void
stopServer()
Stop the standlone server.
void
stopServer(String[] arguments)
Stop the standlone server.

Field Details

CATALINA_BASE_TOKEN

protected static final String CATALINA_BASE_TOKEN


CATALINA_HOME_TOKEN

protected static final String CATALINA_HOME_TOKEN


catalinaLoader

protected ClassLoader catalinaLoader


commonLoader

protected ClassLoader commonLoader


debug

protected int debug
Debugging detail level for processing the startup.


sharedLoader

protected ClassLoader sharedLoader

Method Details

destroy

public void destroy()
Destroy the Catalina Daemon.


getAwait

public boolean getAwait()
            throws Exception


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()
            throws Exception
Initialize daemon.


init

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


log

protected static void log(String message)
Log a debugging detail message.

Parameters:
message - The message to be logged


log

protected static void log(String message,
                          Throwable exception)
Log a debugging detail message with an exception.

Parameters:
message - The message to be logged
exception - The exception to be logged


main

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

Parameters:


setAwait

public void setAwait(boolean await)
            throws Exception
Set flag.


setCatalinaBase

public void setCatalinaBase(String s)


setCatalinaHome

public void setCatalinaHome(String s)


start

public void start()
            throws Exception
Start the Catalina daemon.


stop

public void stop()
            throws Exception
Stop the Catalina Daemon.


stopServer

public void stopServer()
            throws Exception
Stop the standlone server.


stopServer

public void stopServer(String[] arguments)
            throws Exception
Stop the standlone server.


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.