Class PlatformFactory
java.lang.Object
org.eclipse.rdf4j.common.platform.PlatformFactory
PlatformFactory creates a Platform instance corresponding with the current platform.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.Loggerfinal Platformprivate static PlatformFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate PlatformTries to determine the platform we're running on based on Java system properties and/or environment variables.static PlatformFactoryReturns the Platform instance corresponding with the current platform.static PlatformReturns the Platform instance corresponding with the current platform.private StringgetSystemEnv(String propertyName) Get system environment variableprivate booleanisGnome()Detect gnome environments.private booleanisKDE()Detect KDE environments.static voidMain
-
Field Details
-
platform
-
logger
private final org.slf4j.Logger logger
-
Constructor Details
-
PlatformFactory
private PlatformFactory()
-
-
Method Details
-
getInstance
Returns the Platform instance corresponding with the current platform.- Returns:
- factory
-
getPlatform
Returns the Platform instance corresponding with the current platform. -
createPlatform
Tries to determine the platform we're running on based on Java system properties and/or environment variables. See http://lopica.sourceforge.net/os.html for an overview. -
isGnome
private boolean isGnome()Detect gnome environments.- Returns:
- true when Gnome session
-
isKDE
private boolean isKDE()Detect KDE environments.- Returns:
- true when KDE
-
getSystemEnv
-
main
-