|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.overlord.sramp.shell.api.SimpleShellContext
public class SimpleShellContext
A simple implementation of ShellContext. This implementation does not
implement any of the event handling. The purpose of this class is to provide
a very simple implementation of the shell context in case users wish to execute
shell commands from outside the interactive shell runtime environment. In other
words, it's useful when utilizing the shell command as a standalone Java app.
| Constructor Summary | |
|---|---|
SimpleShellContext()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addHandler(ShellContextEventHandler handler)
Adds an event handler to the shell context. |
Object |
getVariable(QName name)
Gets a variable from the context. |
void |
removeHandler(ShellContextEventHandler handler)
Removes an event handler from the shell context. |
Object |
removeVariable(QName name)
Removes a variable from the context. |
void |
setVariable(QName name,
Object object)
Sets a variable in the context. |
void |
setVariable(QName name,
Object object,
ShellContextVariableLifecycleHandler lifecycleHandler)
Sets a variable in the context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleShellContext()
| Method Detail |
|---|
public void setVariable(QName name,
Object object)
ShellContext
setVariable in interface ShellContextorg.overlord.sramp.shell.api.shell.ShellContext#setVariable(javax.xml.namespace.QName, java.lang.Object)
public void setVariable(QName name,
Object object,
ShellContextVariableLifecycleHandler lifecycleHandler)
ShellContext
setVariable in interface ShellContextorg.overlord.sramp.shell.api.shell.ShellContext#setVariable(javax.xml.namespace.QName, java.lang.Object, org.overlord.sramp.shell.api.shell.ShellContextVariableLifecycleHandler)public Object getVariable(QName name)
ShellContext
getVariable in interface ShellContextorg.overlord.sramp.shell.api.shell.ShellContext#getVariable(javax.xml.namespace.QName)public Object removeVariable(QName name)
ShellContext
removeVariable in interface ShellContextorg.overlord.sramp.shell.api.shell.ShellContext#removeVariable(javax.xml.namespace.QName)public void addHandler(ShellContextEventHandler handler)
ShellContext
addHandler in interface ShellContextShellContext.addHandler(org.overlord.sramp.shell.api.ShellContextEventHandler)public void removeHandler(ShellContextEventHandler handler)
ShellContext
removeHandler in interface ShellContextShellContext.removeHandler(org.overlord.sramp.shell.api.ShellContextEventHandler)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||