org.gudy.azureus2.core3.util
Class SystemProperties

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

public class SystemProperties
extends Object

Utility class to manage system-dependant information.


Field Summary
static String APPLICATION_NAME
           
static String AZ_APP_ID
           
static String SEP
          Path separator charactor.
static String SYS_PROP_CONFIG_OVERRIDE
           
 
Constructor Summary
SystemProperties()
           
 
Method Summary
static void determineApplicationName()
           
static String getApplicationEntryPoint()
           
static String getApplicationIdentifier()
           
static String getApplicationName()
           
static String getApplicationPath()
          Returns the full path to the directory where Azureus is installed and running from.
static String getApplicationVersion()
           
static String getAzureusJarPath()
           
static String getDocPath()
           
static String getEnvironmentalVariable(String _var)
          Will attempt to retrieve an OS-specific environmental var.
static 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(String entry_point)
           
static void setApplicationIdentifier(String application_id)
           
static void setApplicationName(String name)
           
static void setApplicationVersion(String v)
           
static void setUserPath(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 String SYS_PROP_CONFIG_OVERRIDE
See Also:
Constant Field Values

SEP

public static final String SEP
Path separator charactor.


AZ_APP_ID

public static final String AZ_APP_ID
See Also:
Constant Field Values

APPLICATION_NAME

public static String APPLICATION_NAME
Constructor Detail

SystemProperties

public SystemProperties()
Method Detail

determineApplicationName

public static void determineApplicationName()

setApplicationName

public static void setApplicationName(String name)

setApplicationIdentifier

public static void setApplicationIdentifier(String application_id)

setApplicationEntryPoint

public static void setApplicationEntryPoint(String entry_point)

getApplicationName

public static String getApplicationName()

setApplicationVersion

public static void setApplicationVersion(String v)

getApplicationVersion

public static String getApplicationVersion()

getApplicationIdentifier

public static String getApplicationIdentifier()

getApplicationEntryPoint

public static String getApplicationEntryPoint()

setUserPath

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

Parameters:
_path -

getUserPath

public static 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 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 String getEnvironmentalVariable(String _var)
Will attempt to retrieve an OS-specific environmental var.


getDocPath

public static String getDocPath()

getAzureusJarPath

public static String getAzureusJarPath()