|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.invocation.Invocation
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.
Field Summary | |
java.lang.Object[] |
args
|
java.util.Map |
as_is_payload
as_is classes that will not be marshalled by the invocation (java.* and javax.* or anything in system classpath is OK) |
InvocationContext (src) |
invocationContext
|
InvocationType (src) |
invocationType
|
static java.lang.String[] |
INVOKE_SIGNATURE
The signature of the invoke() method |
java.lang.reflect.Method |
method
|
java.lang.Object |
objectName
|
java.util.Map |
payload
Payload will be marshalled for type hiding at the RMI layers. |
java.util.Map |
transient_payload
Contextual information to the invocation that is not part of the payload. |
Constructor Summary | |
Invocation()
No-args constructor exposed for externalization only. |
|
Invocation(java.lang.Object id,
java.lang.reflect.Method m,
java.lang.Object[] args,
Transaction (src) tx,
java.security.Principal identity,
java.lang.Object credential)
|
Method Summary | |
java.lang.Object[] |
getArguments()
|
java.util.Map |
getAsIsPayload()
|
java.lang.Object |
getAsIsValue(java.lang.Object key)
|
java.lang.Object |
getCredential()
|
java.lang.Object |
getEnterpriseContext()
|
java.lang.Object |
getId()
|
InvocationContext (src) |
getInvocationContext()
marcf: SCOTT WARNING! I removed the "setPrincipal" that was called here |
java.lang.reflect.Method |
getMethod()
get on method Return the invocation method. |
java.lang.Object |
getObjectName()
|
java.util.Map |
getPayload()
|
java.lang.Object |
getPayloadValue(java.lang.Object key)
|
java.security.Principal |
getPrincipal()
|
Transaction (src) |
getTransaction()
get the transaction. |
java.util.Map |
getTransientPayload()
|
java.lang.Object |
getTransientValue(java.lang.Object key)
|
InvocationType (src) |
getType()
|
java.lang.Object |
getValue(java.lang.Object key)
Get a value from the stores. |
boolean |
isLocal()
Helper method to determine whether an invocation is local |
java.lang.Object |
performCall(java.lang.Object instance,
java.lang.reflect.Method m,
java.lang.Object[] arguments)
This method will be called by the container(ContainerInterceptor) to issue the ultimate method call represented by this invocation. |
void |
setArguments(java.lang.Object[] arguments)
A list of arguments for the method. |
void |
setCredential(java.lang.Object credential)
Change the security credentials of this invocation. |
void |
setEnterpriseContext(java.lang.Object ctx)
|
void |
setId(java.lang.Object id)
Return the invocation target ID. |
void |
setInvocationContext(InvocationContext (src) ctx)
|
void |
setMethod(java.lang.reflect.Method method)
set on method Return the invocation method. |
void |
setObjectName(java.lang.Object objectName)
container for server side association. |
void |
setPrincipal(java.security.Principal principal)
Change the security identity of this invocation. |
void |
setTransaction(Transaction (src) tx)
set the transaction. |
void |
setType(InvocationType (src) type)
An arbitrary type. |
void |
setValue(java.lang.Object key,
java.lang.Object value)
The generic store of variables. |
void |
setValue(java.lang.Object key,
java.lang.Object value,
PayloadKey (src) type)
Advanced store Here you can pass a TYPE that indicates where to put the value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String[] INVOKE_SIGNATURE
public java.util.Map transient_payload
public java.util.Map as_is_payload
public java.util.Map payload
public InvocationContext (src) invocationContext
public java.lang.Object[] args
public java.lang.Object objectName
public java.lang.reflect.Method method
public InvocationType (src) invocationType
Constructor Detail |
public Invocation()
public Invocation(java.lang.Object id, java.lang.reflect.Method m, java.lang.Object[] args, Transaction (src) tx, java.security.Principal identity, java.lang.Object credential)
Method Detail |
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 codeba
public void setValue(java.lang.Object key, java.lang.Object value, PayloadKey (src) type)
public java.lang.Object getValue(java.lang.Object key)
public java.lang.Object getPayloadValue(java.lang.Object key)
public java.lang.Object getTransientValue(java.lang.Object key)
public java.lang.Object getAsIsValue(java.lang.Object key)
public void setTransaction(Transaction (src) tx)
public Transaction (src) getTransaction()
public void setPrincipal(java.security.Principal principal)
public java.security.Principal getPrincipal()
public void setCredential(java.lang.Object credential)
public java.lang.Object getCredential()
public void setObjectName(java.lang.Object objectName)
public java.lang.Object getObjectName()
public void setType(InvocationType (src) type)
public InvocationType (src) getType()
public void setId(java.lang.Object id)
public java.lang.Object getId()
public void setMethod(java.lang.reflect.Method method)
public java.lang.reflect.Method getMethod()
public void setArguments(java.lang.Object[] arguments)
public java.lang.Object[] getArguments()
public InvocationContext (src) getInvocationContext()
public void setInvocationContext(InvocationContext (src) ctx)
public void setEnterpriseContext(java.lang.Object ctx)
public java.lang.Object getEnterpriseContext()
public java.util.Map getTransientPayload()
public java.util.Map getAsIsPayload()
public java.util.Map getPayload()
public java.lang.Object performCall(java.lang.Object instance, java.lang.reflect.Method m, java.lang.Object[] arguments) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.Exception
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.Exception
public boolean isLocal()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |