| java.lang.Object org.jboss.invocation.Invocation
All known Subclasses: org.jboss.invocation.LocalEJBInvocation, org.jboss.invocation.MarshalledInvocation,
Invocation | public class Invocation (Code) | | The Invocation object is the generic object flowing through our interceptors.
The heart of it is the payload map that can contain anything we then
put readers on them. The first reader is this
Invocation object that can interpret the data in it.
Essentially we can carry ANYTHING from the client to the server, we keep
a series of of predifined variables and method calls to get at the
pointers. But really it is just a repository of objects.
author: Marc Fleury author: Christoph G. Jung version: $Revision: 57209 $ |
INVOKE_SIGNATURE | final public static String[] INVOKE_SIGNATURE(Code) | | The signature of the invoke() method
|
as_is_payload | public Map as_is_payload(Code) | | as_is classes that will not be marshalled by the invocation
(java.* and javax.* or anything in system classpath is OK)
|
payload | public Map payload(Code) | | Payload will be marshalled for type hiding at the RMI layers.
|
transient_payload | public Map transient_payload(Code) | | Contextual information to the invocation that is not part of the payload.
|
Invocation | public Invocation()(Code) | | No-args constructor exposed for externalization only.
|
getAsIsPayload | public Map getAsIsPayload()(Code) | | |
getEnterpriseContext | public Object getEnterpriseContext()(Code) | | |
getInvocationContext | public InvocationContext getInvocationContext()(Code) | | marcf: SCOTT WARNING! I removed the "setPrincipal" that was called here
|
getMethod | public Method getMethod()(Code) | | get on method Return the invocation method.
|
getTransaction | public Transaction getTransaction()(Code) | | get the transaction.
|
getTransientPayload | public Map getTransientPayload()(Code) | | |
isLocal | public boolean isLocal()(Code) | | Helper method to determine whether an invocation is local
true when local, false otherwise |
setArguments | public void setArguments(Object[] arguments)(Code) | | A list of arguments for the method.
|
setCredential | public void setCredential(Object credential)(Code) | | Change the security credentials of this invocation.
|
setEnterpriseContext | public void setEnterpriseContext(Object ctx)(Code) | | |
setId | public void setId(Object id)(Code) | | Return the invocation target ID. Can be used to identify a cached object
|
setMethod | public void setMethod(Method method)(Code) | | set on method Return the invocation method.
|
setObjectName | public void setObjectName(Object objectName)(Code) | | container for server side association.
|
setPrincipal | public void setPrincipal(Principal principal)(Code) | | Change the security identity of this invocation.
|
setTransaction | public void setTransaction(Transaction tx)(Code) | | set the transaction.
|
setValue | public void setValue(Object key, Object value)(Code) | | The generic store of variables.
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 codeba
|
setValue | public void setValue(Object key, Object value, PayloadKey type)(Code) | | Advanced store
Here you can pass a TYPE that indicates where to put the value.
TRANSIENT: the value is put in a map that WON'T be passed
AS_IS: no need to marshall the value when passed (use for all JDK
java types)
PAYLOAD: we need to marshall the value as its type is application specific
|
|
|