org.crsh.shell.impl
Class CommandContextImpl

java.lang.Object
  extended by org.crsh.shell.impl.CommandContextImpl
All Implemented Interfaces:
CommandContext
Direct Known Subclasses:
AbstractInvocationContext

 class CommandContextImpl
extends Object
implements CommandContext

Version:
$Revision$
Author:
Julien Viet

Field Summary
private  Map<String,Object> attributes
          .
 
Constructor Summary
CommandContextImpl(Map<String,Object> attributes)
           
 
Method Summary
protected  Map<String,Object> attributes(Map<String,Object> attributes)
          Provide an opportunity to subclass to change the attribute map.
 Map<String,Object> getAttributes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributes

private final Map<String,Object> attributes
.

Constructor Detail

CommandContextImpl

CommandContextImpl(Map<String,Object> attributes)
Method Detail

attributes

protected Map<String,Object> attributes(Map<String,Object> attributes)
Provide an opportunity to subclass to change the attribute map. This implementation returns the same object by default.

Parameters:
attributes - the original attributes
Returns:
the replaced attributes

getAttributes

public final Map<String,Object> getAttributes()
Specified by:
getAttributes in interface CommandContext


Copyright © 2012 eXo Platform SAS. All Rights Reserved.