Class GlobalProperties
- java.lang.Object
-
- de.aristaflow.adept2.base.configuration.GlobalProperties
-
public final class GlobalProperties extends Object
This file provides direct access to the global properties of AristaFlow. They are initialised when creating the boot configuration manager.
-
-
Constructor Summary
Constructors Constructor Description GlobalProperties()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
getOsName()
Gets the name of the OS this installation is running on.static File
getTempDir()
Gets the temporary directory of the JVM.static ZoneId
getUtcZoneId()
Gets the ID of the UTC timezone.static Charset
getUtf8Charset()
Deprecated.UseStandardCharsets.UTF_8
instead.
-
-
-
Method Detail
-
getOsName
public static String getOsName()
Gets the name of the OS this installation is running on. This is used to resolve OS-specific issues, for instance, implicitly using extensions for executable files.- Returns:
- The name of the OS this installation is running on.
-
getUtf8Charset
@Deprecated public static Charset getUtf8Charset()
Deprecated.UseStandardCharsets.UTF_8
instead.Gets theUTF-8
character set which has to be provided by the JVM. This global property preventsUnsupportedEncodingExceptions
throughout our code.- Returns:
- The
UTF-8
character set.
-
getUtcZoneId
public static ZoneId getUtcZoneId()
Gets the ID of the UTC timezone.- Returns:
- The ID of the UTC timezone.
-
getTempDir
public static File getTempDir()
Gets the temporary directory of the JVM.- Returns:
- The temporary directory of the JVM.
-
-