com.partnersoft.system
Class AppEnvironment

java.lang.Object
  extended by com.partnersoft.system.AppEnvironment

public class AppEnvironment
extends java.lang.Object

Describes and manages the high-level runtime environment for applications. This includes such info as whether the JVM was launched directly or via Java Web Start, whether we must run in "read-only" mode, where the current directory is, etc.

Author:
Paul Reavis Copyright 1999-2004 Partner Software, Inc.

Field Summary
static int LINUX
           
static int MAC
           
static int WINDOWS
           
 
Constructor Summary
AppEnvironment()
           
 
Method Summary
 java.lang.String getJREDescription()
           
 java.lang.String getOSDescription()
           
 java.lang.String getOSType()
           
 java.lang.String getUserName()
           
 java.net.URL getWebStartURL()
           
 boolean isHeadless()
           
 boolean isLinux()
           
 boolean isMac()
           
 boolean isReadOnly()
           
 boolean isWebStarted()
           
 boolean isWindows()
           
static AppEnvironment singleton()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WINDOWS

public static final int WINDOWS
See Also:
Constant Field Values

LINUX

public static final int LINUX
See Also:
Constant Field Values

MAC

public static final int MAC
See Also:
Constant Field Values
Constructor Detail

AppEnvironment

public AppEnvironment()
Method Detail

singleton

public static AppEnvironment singleton()

isLinux

public boolean isLinux()

isMac

public boolean isMac()

isWindows

public boolean isWindows()

getOSType

public java.lang.String getOSType()

isHeadless

public boolean isHeadless()

isWebStarted

public boolean isWebStarted()

getWebStartURL

public java.net.URL getWebStartURL()

getOSDescription

public java.lang.String getOSDescription()

getJREDescription

public java.lang.String getJREDescription()

isReadOnly

public boolean isReadOnly()

getUserName

public java.lang.String getUserName()