Class PlatformFactory

java.lang.Object
org.eclipse.rdf4j.common.platform.PlatformFactory

public class PlatformFactory extends Object
PlatformFactory creates a Platform instance corresponding with the current platform.
  • Field Details

    • sharedInstance

      private static PlatformFactory sharedInstance
    • platform

      public final Platform platform
    • logger

      private final org.slf4j.Logger logger
  • Constructor Details

    • PlatformFactory

      private PlatformFactory()
  • Method Details

    • getInstance

      public static PlatformFactory getInstance()
      Returns the Platform instance corresponding with the current platform.
      Returns:
      factory
    • getPlatform

      public static Platform getPlatform()
      Returns the Platform instance corresponding with the current platform.
    • createPlatform

      private 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

      private String getSystemEnv(String propertyName)
      Get system environment variable
      Parameters:
      propertyName -
      Returns:
      system environment variable
    • main

      public static void main(String[] args)
      Main
      Parameters:
      args - arguments