|
Tweek Java API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.vrjuggler.tweek.services.EnvironmentServiceProxy
public class EnvironmentServiceProxy
A proxy to the built-in Tweek Environment Service. Instantiate this class to get access to the Environment Service.
| Field Summary |
|---|
| Fields inherited from interface org.vrjuggler.tweek.services.EnvironmentService |
|---|
MacOS, UNIX, Windows, WindowsCE |
| Constructor Summary | |
|---|---|
EnvironmentServiceProxy()
Creates a new EnvironmentService proxy to the Tweek Environment Service. |
|
| Method Summary | |
|---|---|
String |
expandEnvVars(String inputStr)
Expands environment variables in the input string. |
String |
getAppDataDir()
Returns the absolute path to the platfom-specific directory where preferences files and other application data should be stored. |
String[] |
getCommandLineArgs()
Returns the array of command-line arguments. |
String |
getenv(String envVarName)
Returns the value of the named environment variable or null if the variable is not set in the user's environment. |
String |
getenv(String envVarName,
String defaultValue)
Returns the value of the named environment variable or the given default value if the variable is not set in the user's environment. |
int |
getOS()
Returns an identifier for the host operationg system. |
String |
getUserHome()
Gets the user's HOME environment variable using the JVM instead of the environment variable. |
void |
setCommandLineArgs(String[] args)
Stores the command-line arguments passed to the application when it was started. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnvironmentServiceProxy()
throws RuntimeException
RuntimeException - if the EnvironmentService Bean could not be
found.| Method Detail |
|---|
public void setCommandLineArgs(String[] args)
setCommandLineArgs in interface EnvironmentServicepublic String[] getCommandLineArgs()
getCommandLineArgs in interface EnvironmentServicepublic String expandEnvVars(String inputStr)
expandEnvVars in interface EnvironmentServiceinputStr - the string in which to look for and expand environment
variables.
public String getUserHome()
getUserHome in interface EnvironmentServicepublic String getAppDataDir()
getAppDataDir in interface EnvironmentServicepublic int getOS()
getOS in interface EnvironmentServicepublic String getenv(String envVarName)
getenv in interface EnvironmentServiceenvVarName - The name of the variable to look up in the user's
environment.
public String getenv(String envVarName,
String defaultValue)
getenv in interface EnvironmentServiceenvVarName - The name of the variable to look up in the user's
environment.defaultValue - The value to return if the named variable is not
found in the user's environment.
|
Tweek Java API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||