org.crsh.command.impl
Class BaseCommandContext
java.lang.Object
org.crsh.command.impl.BaseCommandContext
- All Implemented Interfaces:
- CommandContext
- Direct Known Subclasses:
- BaseInvocationContext
public class BaseCommandContext
- extends Object
- implements CommandContext
- Version:
- $Revision$
- Author:
- Julien Viet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attributes
private final Map<String,Object> attributes
- .
BaseCommandContext
public BaseCommandContext(Map<String,Object> attributes)
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()
- Description copied from interface:
CommandContext
- Returns the attributes related to current shell session.
- Specified by:
getAttributes
in interface CommandContext
- Returns:
- the session attributes
Copyright © 2012 eXo Platform SAS. All Rights Reserved.