Class Application

java.lang.Object
is.galia.Application

public final class Application extends Object
Main application class.
  • Field Details

  • Method Details

    • getAppServer

      public static ApplicationServer getAppServer()
      Returns:
      Application web server instance.
    • getJARFile

      public static Path getJARFile()
      Returns the path to the application JAR file. When not running from a JAR, this will be the path to target/classes.
      Returns:
      Path to the JAR file.
    • getName

      public static String getName()
      Returns the application title from MANIFEST.MF, or some other string if not running from a JAR.
      Returns:
      The application name.
    • getSpecificationVersion

      public static SoftwareVersion getSpecificationVersion()
      Returns the application specification (API) version from MANIFEST.MF, or the version from pom.xml if not running from a JAR.
      Returns:
      The application specification version.
    • getTempDir

      public static Path getTempDir()
      Returns the path to the temporary directory used by the application. If it does not exist, it will be created.
      Returns:
      Path to the effective application temporary directory.
    • getVersion

      public static SoftwareVersion getVersion()
      Returns the application version, a.k.a. implementation version, from MANIFEST.MF, or the version from pom.xml if not running from a JAR.
      Returns:
      The application version.
    • isDeveloping

      public static boolean isDeveloping()
      Returns:
      Whether the application is running in development mode.
      See Also:
    • isTesting

      public static boolean isTesting()
      Returns:
      Whether the application is running in test mode.
      See Also:
    • main

      public static void main(String... args)
      Handles the command-line arguments and starts the web server.
      Parameters:
      args - Command-line arguments. See CommandLineArgumentHandler.