|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 | |
Object[] |
args
|
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 |
invocationContext
|
InvocationType |
invocationType
|
static String[] |
INVOKE_SIGNATURE
The signature of the invoke() method |
Method |
method
|
Object |
objectName
|
Map |
payload
Payload will be marshalled for type hiding at the RMI layers. |
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(Object id,
Method m,
Object[] args,
Transaction tx,
Principal identity,
Object credential)
|
Method Summary | |
Object[] |
getArguments()
|
Map |
getAsIsPayload()
|
Object |
getAsIsValue(Object key)
|
Object |
getCredential()
|
Object |
getEnterpriseContext()
|
Object |
getId()
|
InvocationContext |
getInvocationContext()
marcf: SCOTT WARNING! I removed the "setPrincipal" that was called here |
Method |
getMethod()
get on method Return the invocation method. |
Object |
getObjectName()
|
Map |
getPayload()
|
Object |
getPayloadValue(Object key)
|
Principal |
getPrincipal()
|
Transaction |
getTransaction()
get the transaction. |
Map |
getTransientPayload()
|
Object |
getTransientValue(Object key)
|
InvocationType |
getType()
|
Object |
getValue(Object key)
Get a value from the stores. |
boolean |
isLocal()
Helper method to determine whether an invocation is local |
Object |
performCall(Object instance,
Method m,
Object[] arguments)
This method will be called by the container(ContainerInterceptor) to issue the ultimate method call represented by this invocation. |
void |
setArguments(Object[] arguments)
A list of arguments for the method. |
void |
setCredential(Object credential)
Change the security credentials of this invocation. |
void |
setEnterpriseContext(Object ctx)
|
void |
setId(Object id)
Return the invocation target ID. |
void |
setInvocationContext(InvocationContext ctx)
|
void |
setMethod(Method method)
set on method Return the invocation method. |
void |
setObjectName(Object objectName)
container for server side association. |
void |
setPrincipal(Principal principal)
Change the security identity of this invocation. |
void |
setTransaction(Transaction tx)
set the transaction. |
void |
setType(InvocationType type)
An arbitrary type. |
void |
setValue(Object key,
Object value)
The generic store of variables. |
void |
setValue(Object key,
Object value,
PayloadKey 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 String[] INVOKE_SIGNATURE
public Map transient_payload
public Map as_is_payload
public Map payload
public InvocationContext invocationContext
public Object[] args
public Object objectName
public Method method
public InvocationType invocationType
Constructor Detail |
public Invocation()
public Invocation(Object id, Method m, Object[] args, Transaction tx, Principal identity, Object credential)
Method Detail |
public void setValue(Object key, 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(Object key, Object value, PayloadKey type)
public Object getValue(Object key)
public Object getPayloadValue(Object key)
public Object getTransientValue(Object key)
public Object getAsIsValue(Object key)
public void setTransaction(Transaction tx)
public Transaction getTransaction()
public void setPrincipal(Principal principal)
public Principal getPrincipal()
public void setCredential(Object credential)
public Object getCredential()
public void setObjectName(Object objectName)
public Object getObjectName()
public void setType(InvocationType type)
public InvocationType getType()
public void setId(Object id)
public Object getId()
public void setMethod(Method method)
public Method getMethod()
public void setArguments(Object[] arguments)
public Object[] getArguments()
public InvocationContext getInvocationContext()
public void setInvocationContext(InvocationContext ctx)
public void setEnterpriseContext(Object ctx)
public Object getEnterpriseContext()
public Map getTransientPayload()
public Map getAsIsPayload()
public Map getPayload()
public Object performCall(Object instance, Method m, Object[] arguments) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, Exception
public boolean isLocal()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |