Class Application
java.lang.Object
is.galia.Application
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPossible value forENVIRONMENT_VM_ARGUMENT.static final Stringstatic final StringPossible value forENVIRONMENT_VM_ARGUMENT. -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationServerstatic PathReturns the path to the application JAR file.static StringgetName()Returns the application title from MANIFEST.MF, or some other string if not running from a JAR.static SoftwareVersionReturns the application specification (API) version from MANIFEST.MF, or the version from pom.xml if not running from a JAR.static PathReturns the path to the temporary directory used by the application.static SoftwareVersionReturns the application version, a.k.a. implementation version, from MANIFEST.MF, or the version from pom.xml if not running from a JAR.static booleanstatic booleanstatic voidHandles 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.
-