public class AppEnvironment
extends java.lang.Object
| Type | Property and Description |
|---|---|
javafx.beans.property.BooleanProperty |
consoleVisible |
javafx.beans.property.BooleanProperty |
debugMode |
javafx.beans.property.Property<org.apache.logging.log4j.Level> |
logLevel |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT_NOTICE |
static java.lang.String |
HTTP_BINJR_WIKI |
static java.lang.String |
HTTP_GITHUB_REPO |
static java.lang.String |
HTTP_WWW_BINJR_EU |
static java.lang.String |
LICENSE |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.BooleanProperty |
consoleVisibleProperty() |
javafx.beans.property.BooleanProperty |
debugModeProperty() |
java.lang.String |
getAppDescription()
Returns a short description for the application.
|
java.lang.Long |
getBuildNumber()
Returns the build number from the manifest
|
static AppEnvironment |
getInstance()
Get the singleton instance for the
UpdateManager class. |
org.apache.logging.log4j.Level |
getLogLevel()
Gets the value of the property logLevel.
|
java.util.jar.Manifest |
getManifest() |
java.util.jar.Manifest |
getManifest(java.lang.Class<?> aClass)
Returns the manifest for the JAR which packages the specified class.
|
OsFamily |
getOsFamily()
Returns the family of the currently running OS
|
java.util.List<SysInfoProperty> |
getSysInfoProperties()
Returns a list of system properties
|
Version |
getVersion()
Returns the version information held in the containing jar's manifest
|
Version |
getVersion(java.lang.Class aClass) |
Version |
getVersion(java.util.jar.Manifest manifest)
Returns a version number extracted from the specified manifest.
|
boolean |
isConsoleVisible()
Gets the value of the property consoleVisible.
|
boolean |
isDebugMode()
Gets the value of the property debugMode.
|
javafx.beans.property.Property<org.apache.logging.log4j.Level> |
logLevelProperty() |
void |
setConsoleVisible(boolean consoleVisible)
Sets the value of the property consoleVisible.
|
void |
setDebugMode(boolean value)
Sets the value of the property debugMode.
|
void |
setLogLevel(org.apache.logging.log4j.Level logLevel)
Sets the value of the property logLevel.
|
public javafx.beans.property.BooleanProperty debugModeProperty
isDebugMode(),
setDebugMode(boolean)public javafx.beans.property.BooleanProperty consoleVisibleProperty
isConsoleVisible(),
setConsoleVisible(boolean)public javafx.beans.property.Property<org.apache.logging.log4j.Level> logLevelProperty
getLogLevel(),
setLogLevel(Level)public static final java.lang.String HTTP_GITHUB_REPO
public static final java.lang.String HTTP_WWW_BINJR_EU
public static final java.lang.String HTTP_BINJR_WIKI
public static final java.lang.String COPYRIGHT_NOTICE
public static final java.lang.String LICENSE
public static AppEnvironment getInstance()
UpdateManager class.UpdateManager class.public Version getVersion()
public Version getVersion(java.util.jar.Manifest manifest)
The version number is extracted according to the following rules:
manifest - the Manifest from which a version number should be extracted.public Version getVersion(java.lang.Class aClass)
public java.util.jar.Manifest getManifest()
public java.util.jar.Manifest getManifest(java.lang.Class<?> aClass)
aClass - public java.lang.String getAppDescription()
public java.lang.Long getBuildNumber()
public java.util.List<SysInfoProperty> getSysInfoProperties()
public OsFamily getOsFamily()
public void setDebugMode(boolean value)
public boolean isDebugMode()
public javafx.beans.property.BooleanProperty debugModeProperty()
isDebugMode(),
setDebugMode(boolean)public boolean isConsoleVisible()
public javafx.beans.property.BooleanProperty consoleVisibleProperty()
isConsoleVisible(),
setConsoleVisible(boolean)public void setConsoleVisible(boolean consoleVisible)
public org.apache.logging.log4j.Level getLogLevel()
public javafx.beans.property.Property<org.apache.logging.log4j.Level> logLevelProperty()
getLogLevel(),
setLogLevel(Level)public void setLogLevel(org.apache.logging.log4j.Level logLevel)
Copyright © 2018 Frederic Thevenet. All rights reserved.