org.crsh.shell.impl.command
Class RuntimeContextImpl

java.lang.Object
  extended by org.crsh.shell.impl.command.RuntimeContextImpl
All Implemented Interfaces:
RuntimeContext

public class RuntimeContextImpl
extends Object
implements RuntimeContext


Field Summary
private  Map<String,Object> attributes
          .
private  Map<String,Object> session
          .
 
Constructor Summary
RuntimeContextImpl(Map<String,Object> session, Map<String,Object> attributes)
           
 
Method Summary
 Map<String,Object> getAttributes()
          Returns the current attributes.
 Map<String,Object> getSession()
          Returns the current session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

private final Map<String,Object> session
.


attributes

private final Map<String,Object> attributes
.

Constructor Detail

RuntimeContextImpl

public RuntimeContextImpl(Map<String,Object> session,
                          Map<String,Object> attributes)
Method Detail

getSession

public final Map<String,Object> getSession()
Description copied from interface: RuntimeContext
Returns the current session.

Specified by:
getSession in interface RuntimeContext
Returns:
the session map

getAttributes

public Map<String,Object> getAttributes()
Description copied from interface: RuntimeContext
Returns the current attributes.

Specified by:
getAttributes in interface RuntimeContext
Returns:
the attributes map


Copyright © 2015 eXo Platform SAS. All Rights Reserved.