org.huihoo.jfox.ejb.naming.server
Class InvocationContext

java.lang.Object
  |
  +--org.huihoo.jfox.ejb.naming.server.InvocationContext
All Implemented Interfaces:
java.io.Serializable

public class InvocationContext
extends java.lang.Object
implements java.io.Serializable

Version:
$0.9.0$
Author:
tai_1219@sina.com
See Also:
Serialized Form

Field Summary
static java.lang.Integer CACHE_ID
          The invoker
 java.util.Map context
          Context is a map
static java.lang.Integer CREDENTIAL
          We can keep a reference to an abstract "container"
static java.lang.Integer INVOKER
           
static java.lang.Integer JMX_NAME
          The Cache-ID associates an instance in cache somewhere on the server with this invocation
static java.lang.Integer PRINCIPAL
          We are using the generic payload to store some of our data, we define some integer entries.
 
Constructor Summary
InvocationContext()
          Exposed for externalization only.
InvocationContext(java.util.Map context)
          Invocation creation
 
Method Summary
 java.lang.Object getCacheId()
           
 Invoker getInvoker()
           
 java.lang.String getJmxName()
           
 java.lang.Object getValue(java.lang.Object key)
          Get a value from the stores
 void setCacheId(java.lang.Object id)
          Return the invocation target ID.
 void setInvoker(Invoker invoker)
           
 void setJmxName(java.lang.String objectName)
          A container for server side association
 void setValue(java.lang.Object key, java.lang.Object value)
          The generic getter and setter is really all that one needs to talk to this object We introduce typed getters and setters for convenience and code readability in the codebase The generic store of variables
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRINCIPAL

public static final java.lang.Integer PRINCIPAL
We are using the generic payload to store some of our data, we define some integer entries. These are just some variables that we define for use in "typed" getters and setters. One can define anything either in here explicitely or through the use of external calls to getValue We keep these around in case one wants to cache the data at the context level


CREDENTIAL

public static final java.lang.Integer CREDENTIAL
We can keep a reference to an abstract "container"


JMX_NAME

public static final java.lang.Integer JMX_NAME
The Cache-ID associates an instance in cache somewhere on the server with this invocation


CACHE_ID

public static final java.lang.Integer CACHE_ID
The invoker


INVOKER

public static final java.lang.Integer INVOKER

context

public java.util.Map context
Context is a map

Constructor Detail

InvocationContext

public InvocationContext()
Exposed for externalization only.


InvocationContext

public InvocationContext(java.util.Map context)
Invocation creation

Parameters:
context -
Method Detail

setValue

public void setValue(java.lang.Object key,
                     java.lang.Object value)
The generic getter and setter is really all that one needs to talk to this object We introduce typed getters and setters for convenience and code readability in the codebase The generic store of variables

Parameters:
key -
value -

getValue

public java.lang.Object getValue(java.lang.Object key)
Get a value from the stores

Parameters:
key -
Returns:
Object

setJmxName

public void setJmxName(java.lang.String objectName)
A container for server side association

Parameters:
objectName -

getJmxName

public java.lang.String getJmxName()
Returns:
String

setCacheId

public void setCacheId(java.lang.Object id)
Return the invocation target ID. Can be used to identify a cached object

Parameters:
id -

getCacheId

public java.lang.Object getCacheId()
Returns:
Object

setInvoker

public void setInvoker(Invoker invoker)
Parameters:
invoker -

getInvoker

public Invoker getInvoker()
Returns:
org.huihoo.jfox.ejb.server.invoke.Invoker