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 StringgetOsName()Gets the name of the OS this installation is running on.static FilegetTempDir()Gets the temporary directory of the JVM.static ZoneIdgetUtcZoneId()Gets the ID of the UTC timezone.static CharsetgetUtf8Charset()Deprecated.UseStandardCharsets.UTF_8instead.
-
-
-
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_8instead.Gets theUTF-8character set which has to be provided by the JVM. This global property preventsUnsupportedEncodingExceptionsthroughout our code.- Returns:
- The
UTF-8character 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.
-
-