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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroy the Catalina Daemon.booleangetAwait()static StringObtain the name of the configured base (instance) directory.static FileObtain the configured base (instance) directory.static StringObtain the name of configured home (binary) directory.static FileObtain the configured home (binary) directory.voidinit()Initialize daemon.voidLoad the Catalina daemon.static voidMain method and entry point when starting Tomcat via the provided scripts.voidsetAwait(boolean await) Set flag.voidstart()Start the Catalina daemon.voidstop()Stop the Catalina Daemon.voidStop the standalone server.voidstopServer(String[] arguments) Stop the standalone server.
-
Constructor Details
-
Bootstrap
public Bootstrap()
-
-
Method Details
-
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
-