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.Logger
final Platform
private static PlatformFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Platform
Tries to determine the platform we're running on based on Java system properties and/or environment variables.static PlatformFactory
Returns the Platform instance corresponding with the current platform.static Platform
Returns the Platform instance corresponding with the current platform.private String
getSystemEnv
(String propertyName) Get system environment variableprivate boolean
isGnome()
Detect gnome environments.private boolean
isKDE()
Detect KDE environments.static void
Main
-
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
Get system environment variable- Parameters:
propertyName
-- Returns:
- system environment variable
-
main
Main- Parameters:
args
- arguments
-