public class ShellContextImpl extends Object implements ShellContext
| Constructor and Description |
|---|
ShellContextImpl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(ShellContextEventHandler handler) |
void |
destroy()
Called to destroy the context.
|
protected ShellCommandReader |
getReader() |
Object |
getVariable(QName name) |
String |
promptForInput(String prompt) |
String |
promptForPassword(String prompt) |
void |
removeHandler(ShellContextEventHandler handler) |
Object |
removeVariable(QName name) |
void |
setReader(ShellCommandReader reader) |
void |
setVariable(QName name,
Object object) |
void |
setVariable(QName name,
Object object,
ShellContextVariableLifecycleHandler lifecycleHandler) |
public void setVariable(QName name, Object object)
setVariable in interface ShellContextshell.ShellContextpublic void setVariable(QName name, Object object, ShellContextVariableLifecycleHandler lifecycleHandler)
setVariable in interface ShellContextshell.ShellContextpublic Object getVariable(QName name)
getVariable in interface ShellContextshell.ShellContextpublic Object removeVariable(QName name)
removeVariable in interface ShellContextshell.ShellContextpublic void destroy()
public void addHandler(ShellContextEventHandler handler)
addHandler in interface ShellContextshell.ShellContextpublic void removeHandler(ShellContextEventHandler handler)
removeHandler in interface ShellContextshell.ShellContextpublic String promptForInput(String prompt)
promptForInput in interface ShellContextShellContext.promptForInput(java.lang.String)public String promptForPassword(String prompt)
promptForPassword in interface ShellContextShellContext.promptForPassword(java.lang.String)protected ShellCommandReader getReader()
public void setReader(ShellCommandReader reader)
reader - the reader to setCopyright © 2011-2014 JBoss, a division of Red Hat. All Rights Reserved.