Class Bootstrap
java.lang.Object
org.apache.catalina.startup.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.
- Author:
- Craig R. McClanahan, Remy Maucherat
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Destroy the Catalina Daemon.boolean
getAwait()
static String
Obtain the name of the configured base (instance) directory.static File
Obtain the configured base (instance) directory.static String
Obtain the name of configured home (binary) directory.static File
Obtain the configured home (binary) directory.protected static String[]
void
init()
Initialize daemon.void
Load the Catalina daemon.static void
Main method and entry point when starting Tomcat via the provided scripts.protected String
System property replacement in the given string.void
setAwait
(boolean await) Set flag.void
start()
Start the Catalina daemon.void
stop()
Stop the Catalina Daemon.void
Stop the standalone server.void
stopServer
(String[] arguments) Stop the standalone server.
-
Constructor Details
-
Bootstrap
public Bootstrap()
-
-
Method Details
-
replace
-
init
-
init
-
start
-
stop
-
stopServer
-
stopServer
-
setAwait
-
getAwait
-
destroy
public void destroy()Destroy the Catalina Daemon. -
main
Main method and entry point when starting Tomcat via the provided scripts.- Parameters:
args
- Command line arguments to be processed
-
getCatalinaHome
Obtain the name of configured home (binary) directory. Note that home and base may be the same (and are by default).- Returns:
- the catalina home
-
getCatalinaBase
Obtain the name of the configured base (instance) directory. Note that home and base may be the same (and are by default). If this is not set the value returned bygetCatalinaHome()
will be used.- Returns:
- the catalina base
-
getCatalinaHomeFile
Obtain the configured home (binary) directory. Note that home and base may be the same (and are by default).- Returns:
- the catalina home as a file
-
getCatalinaBaseFile
Obtain the configured base (instance) directory. Note that home and base may be the same (and are by default). If this is not set the value returned bygetCatalinaHomeFile()
will be used.- Returns:
- the catalina base as a file
-
getPaths
-