org.crsh.command
Class BaseRuntimeContext
java.lang.Object
org.crsh.command.BaseRuntimeContext
- All Implemented Interfaces:
- RuntimeContext
-
public class BaseRuntimeContext
- extends Object
-
- implements RuntimeContext
-
Field Summary |
private Map<String,Object> |
attributes
. |
private Map<String,Object> |
session
. |
Constructor Summary |
BaseRuntimeContext(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 |
session
private final Map<String,Object> session
-
.
attributes
private final Map<String,Object> attributes
-
.
BaseRuntimeContext
public BaseRuntimeContext(Map<String,Object> session,
Map<String,Object> attributes)
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 © 2014 eXo Platform SAS. All Rights Reserved.