|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.startup.Bootstrap
public final class Bootstrap
Bootstrap 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.
Field Summary | |
---|---|
protected ClassLoader |
catalinaLoader
|
protected ClassLoader |
commonLoader
|
protected ClassLoader |
sharedLoader
|
Constructor Summary | |
---|---|
Bootstrap()
|
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. |
static void |
main(String[] args)
Main method and entry point when starting Tomcat via the provided scripts. |
protected String |
replace(String str)
System property replacement in the given string. |
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 standalone server. |
void |
stopServer(String[] arguments)
Stop the standalone server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ClassLoader commonLoader
protected ClassLoader catalinaLoader
protected ClassLoader sharedLoader
Constructor Detail |
---|
public Bootstrap()
Method Detail |
---|
protected String replace(String str)
str
- The original string
public void init() throws Exception
Exception
public void init(String[] arguments) throws Exception
Exception
public void start() throws Exception
Exception
public void stop() throws Exception
Exception
public void stopServer() throws Exception
Exception
public void stopServer(String[] arguments) throws Exception
Exception
public void setAwait(boolean await) throws Exception
Exception
public boolean getAwait() throws Exception
Exception
public void destroy()
public static void main(String[] args)
args
- Command line arguments to be processedpublic void setCatalinaHome(String s)
public void setCatalinaBase(String s)
public static String getCatalinaHome()
public static String getCatalinaBase()
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |