Package net.microfalx.boot
Class Bootstrap
java.lang.Object
net.microfalx.boot.Bootstrap
The main class which bootstraps a Java application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLog()Returns the boot log.voidvoidLogs a message into the bootstrap log.voidLogs a message into the bootstrap log.static voidvoidrun()voidsetExitCode(int exitCode) Changes the exit code if a problem is detected.
-
Constructor Details
-
Bootstrap
public Bootstrap()
-
-
Method Details
-
getLog
Returns the boot log.- Returns:
- a non-null instance
-
setExitCode
public void setExitCode(int exitCode) Changes the exit code if a problem is detected.Mainly used during unit tests.
- Parameters:
exitCode- the exit code
-
log
Logs a message into the bootstrap log.- Parameters:
message- the message
-
log
Logs a message into the bootstrap log.- Parameters:
format- the message formatargs- arguments passed to the format
-
init
-
run
public void run() -
main
-