org.overlord.sramp.shell
Class ShellContextImpl

java.lang.Object
  extended by org.overlord.sramp.shell.ShellContextImpl
All Implemented Interfaces:
ShellContext

public class ShellContextImpl
extends Object
implements ShellContext

Implementation of the shell context.

Author:
eric.wittmann@redhat.com

Constructor Summary
ShellContextImpl()
          Constructor.
 
Method Summary
 void addHandler(ShellContextEventHandler handler)
           
 void destroy()
          Called to destroy the context.
 Object getVariable(QName name)
           
 void removeHandler(ShellContextEventHandler handler)
           
 Object removeVariable(QName name)
           
 void setVariable(QName name, Object object)
           
 void setVariable(QName name, Object object, ShellContextVariableLifecycleHandler lifecycleHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellContextImpl

public ShellContextImpl()
Constructor.

Method Detail

setVariable

public void setVariable(QName name,
                        Object object)
Specified by:
setVariable in interface ShellContext
See Also:
shell.ShellContext

setVariable

public void setVariable(QName name,
                        Object object,
                        ShellContextVariableLifecycleHandler lifecycleHandler)
Specified by:
setVariable in interface ShellContext
See Also:
shell.ShellContext

getVariable

public Object getVariable(QName name)
Specified by:
getVariable in interface ShellContext
See Also:
shell.ShellContext

removeVariable

public Object removeVariable(QName name)
Specified by:
removeVariable in interface ShellContext
See Also:
shell.ShellContext

destroy

public void destroy()
Called to destroy the context.


addHandler

public void addHandler(ShellContextEventHandler handler)
Specified by:
addHandler in interface ShellContext
See Also:
shell.ShellContext

removeHandler

public void removeHandler(ShellContextEventHandler handler)
Specified by:
removeHandler in interface ShellContext
See Also:
shell.ShellContext


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.