org.gudy.azureus2.core3.util
Class SystemProperties

java.lang.Object
  extended by org.gudy.azureus2.core3.util.SystemProperties

public class SystemProperties
extends java.lang.Object

Utility class to manage system-dependant information.


Field Summary
static java.lang.String APPLICATION_NAME
           
static java.lang.String AZ_APP_ID
           
static java.lang.String SEP
          Path separator charactor.
static java.lang.String SYS_PROP_CONFIG_OVERRIDE
           
 
Constructor Summary
SystemProperties()
           
 
Method Summary
static void determineApplicationName()
           
static java.lang.String getApplicationEntryPoint()
           
static java.lang.String getApplicationIdentifier()
           
static java.lang.String getApplicationName()
           
static java.lang.String getApplicationPath()
          Returns the full path to the directory where Azureus is installed and running from.
static java.lang.String getApplicationVersion()
           
static java.lang.String getAzureusJarPath()
           
static java.lang.String getDocPath()
           
static java.lang.String getEnvironmentalVariable(java.lang.String _var)
          Will attempt to retrieve an OS-specific environmental var.
static java.lang.String getUserPath()
          Returns the full path to the user's home azureus directory.
static boolean isJavaWebStartInstance()
          Returns whether or not this running instance was started via Java's Web Start system.
static void setApplicationEntryPoint(java.lang.String entry_point)
           
static void setApplicationIdentifier(java.lang.String application_id)
           
static void setApplicationName(java.lang.String name)
           
static void setApplicationVersion(java.lang.String v)
           
static void setUserPath(java.lang.String _path)
          This is used by third-party apps that want explicit control over the user-path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYS_PROP_CONFIG_OVERRIDE

public static final java.lang.String SYS_PROP_CONFIG_OVERRIDE
See Also:
Constant Field Values

SEP

public static final java.lang.String SEP
Path separator charactor.


AZ_APP_ID

public static final java.lang.String AZ_APP_ID
See Also:
Constant Field Values

APPLICATION_NAME

public static java.lang.String APPLICATION_NAME
Constructor Detail

SystemProperties

public SystemProperties()
Method Detail

determineApplicationName

public static void determineApplicationName()

setApplicationName

public static void setApplicationName(java.lang.String name)

setApplicationIdentifier

public static void setApplicationIdentifier(java.lang.String application_id)

setApplicationEntryPoint

public static void setApplicationEntryPoint(java.lang.String entry_point)

getApplicationName

public static java.lang.String getApplicationName()

setApplicationVersion

public static void setApplicationVersion(java.lang.String v)

getApplicationVersion

public static java.lang.String getApplicationVersion()

getApplicationIdentifier

public static java.lang.String getApplicationIdentifier()

getApplicationEntryPoint

public static java.lang.String getApplicationEntryPoint()

setUserPath

public static void setUserPath(java.lang.String _path)
This is used by third-party apps that want explicit control over the user-path

Parameters:
_path -

getUserPath

public static java.lang.String getUserPath()
Returns the full path to the user's home azureus directory. Under unix, this is usually ~/.azureus/ Under Windows, this is usually .../Documents and Settings/username/Application Data/Azureus/ Under OSX, this is usually /Users/username/Library/Application Support/Azureus/


getApplicationPath

public static java.lang.String getApplicationPath()
Returns the full path to the directory where Azureus is installed and running from.


isJavaWebStartInstance

public static boolean isJavaWebStartInstance()
Returns whether or not this running instance was started via Java's Web Start system.


getEnvironmentalVariable

public static java.lang.String getEnvironmentalVariable(java.lang.String _var)
Will attempt to retrieve an OS-specific environmental var.


getDocPath

public static java.lang.String getDocPath()

getAzureusJarPath

public static java.lang.String getAzureusJarPath()