Class Bootstrap

java.lang.Object
net.microfalx.boot.Bootstrap

public class Bootstrap extends Object
The main class which bootstraps a Java application.
  • Constructor Details

    • Bootstrap

      public Bootstrap()
  • Method Details

    • getLog

      public String 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

      public void log(String message)
      Logs a message into the bootstrap log.
      Parameters:
      message - the message
    • log

      public void log(String format, Object... args)
      Logs a message into the bootstrap log.
      Parameters:
      format - the message format
      args - arguments passed to the format
    • init

      public void init(String[] args)
    • run

      public void run()
    • main

      public static void main(String[] args)