Package org.apache.catalina.startup
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 SummaryConstructors
- 
Method SummaryModifier 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.protected static String[]voidinit()Initialize daemon.voidLoad the Catalina daemon.static voidMain method and entry point when starting Tomcat via the provided scripts.protected StringSystem property replacement in the given string.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- 
Bootstrappublic Bootstrap()
 
- 
- 
Method Details- 
replaceSystem property replacement in the given string.- Parameters:
- str- The original string
- Returns:
- the modified string
 
- 
initInitialize daemon.- Throws:
- Exception- Fatal initialization error
 
- 
initLoad the Catalina daemon.- Parameters:
- arguments- Initialization arguments
- Throws:
- Exception- Fatal initialization error
 
- 
startStart the Catalina daemon.- Throws:
- Exception- Fatal start error
 
- 
stopStop the Catalina Daemon.- Throws:
- Exception- Fatal stop error
 
- 
stopServerStop the standalone server.- Throws:
- Exception- Fatal stop error
 
- 
stopServerStop the standalone server.- Parameters:
- arguments- Command line arguments
- Throws:
- Exception- Fatal stop error
 
- 
setAwaitSet flag.- Parameters:
- await-- trueif the daemon should block
- Throws:
- Exception- Reflection error
 
- 
getAwait- Throws:
- Exception
 
- 
destroypublic void destroy()Destroy the Catalina Daemon.
- 
mainMain method and entry point when starting Tomcat via the provided scripts.- Parameters:
- args- Command line arguments to be processed
 
- 
getCatalinaHomeObtain the name of configured home (binary) directory. Note that home and base may be the same (and are by default).- Returns:
- the catalina home
 
- 
getCatalinaBaseObtain 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
 
- 
getCatalinaHomeFileObtain 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
 
- 
getCatalinaBaseFileObtain 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
 
-