public final class SimpleExecutionEnvironment extends java.lang.Object implements ExecutionEnvironment
ExecutionEnvironment.| Constructor and Description |
|---|
SimpleExecutionEnvironment() |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Called just after the VM is executed, to finalize information of the
execution for the environment.
|
java.lang.Object |
get(java.lang.String id) |
java.lang.Object |
get(java.lang.String id,
java.lang.Object defaultValue) |
boolean |
has(java.lang.String id) |
java.util.Set<java.lang.String> |
keySet() |
boolean |
put(java.lang.String id,
java.lang.Object v) |
java.lang.Object |
remove(java.lang.String id) |
void |
setup()
Called just before the VM is executed, to enable and preparations needed
in the environment.
|
public boolean has(java.lang.String id)
has in interface ExecutionEnvironmentid - the variable namepublic java.lang.Object get(java.lang.String id)
get in interface ExecutionEnvironmentid - the variable namepublic java.lang.Object get(java.lang.String id,
java.lang.Object defaultValue)
get in interface ExecutionEnvironmentid - the variable namedefaultValue - a parameterizable default valuepublic boolean put(java.lang.String id,
java.lang.Object v)
put in interface ExecutionEnvironmentid - the variable namev - the value that should be associated with idpublic java.lang.Object remove(java.lang.String id)
remove in interface ExecutionEnvironmentid - the variable namepublic java.util.Set<java.lang.String> keySet()
keySet in interface ExecutionEnvironmentpublic void commit()
ExecutionEnvironmentcommit in interface ExecutionEnvironmentpublic void setup()
ExecutionEnvironmentsetup in interface ExecutionEnvironment