Class Application
java.lang.Object
is.galia.Application
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Possible value forENVIRONMENT_VM_ARGUMENT
.static final String
static final String
Possible value forENVIRONMENT_VM_ARGUMENT
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationServer
static Path
Returns the path to the application JAR file.static String
getName()
Returns the application title from MANIFEST.MF, or some other string if not running from a JAR.static SoftwareVersion
Returns the application specification (API) version from MANIFEST.MF, or the version from pom.xml if not running from a JAR.static Path
Returns the path to the temporary directory used by the application.static SoftwareVersion
Returns the application version, a.k.a. implementation version, from MANIFEST.MF, or the version from pom.xml if not running from a JAR.static boolean
static boolean
static void
Handles the command-line arguments and starts the web server.
-
Field Details
-
ENVIRONMENT_VM_ARGUMENT
- See Also:
-
DEVELOPMENT_ENVIRONMENT
Possible value forENVIRONMENT_VM_ARGUMENT
.- See Also:
-
TEST_ENVIRONMENT
-
-
Method Details
-
getAppServer
- Returns:
- Application web server instance.
-
getJARFile
Returns the path to the application JAR file. When not running from a JAR, this will be the path totarget/classes
.- Returns:
- Path to the JAR file.
-
getName
Returns the application title from MANIFEST.MF, or some other string if not running from a JAR.- Returns:
- The application name.
-
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
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
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
Handles the command-line arguments and starts the web server.- Parameters:
args
- Command-line arguments. SeeCommandLineArgumentHandler
.
-