|
JBoss EJB client 1.0.3.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb.client.Attachable
org.jboss.ejb.client.EJBClientInvocationContext
A
- the receiver attachment typepublic final class EJBClientInvocationContext
An interceptor context for EJB client interceptors.
Method Summary | ||
---|---|---|
void |
discardResult()
Discard the result from this request. |
|
protected void |
finalize()
|
|
EJBClientContext |
getClientContext()
Get the EJB client context associated with this invocation. |
|
Map<String,Object> |
getContextData()
Get the context data. |
|
Method |
getInvokedMethod()
Get the invoked proxy method. |
|
Object |
getInvokedProxy()
Get the invoked proxy object. |
|
EJBLocator<?> |
getLocator()
Get the locator for the invocation target. |
|
Object[] |
getParameters()
Get the invocation method parameters. |
|
|
getProxyAttachment(AttachmentKey<T> key)
Get a value attached to the proxy. |
|
protected EJBReceiver |
getReceiver()
Get the EJB receiver associated with this invocation. |
|
Object |
getResult()
Get the invocation result from this request. |
|
Class<?> |
getViewClass()
Get the invoked view class. |
|
|
removeProxyAttachment(AttachmentKey<T> key)
Remove a value attached to the proxy. |
|
void |
sendRequest()
Proceed with sending the request normally. |
Methods inherited from class org.jboss.ejb.client.Attachable |
---|
getAttachment, putAttachment, putAttachmentIfAbsent, removeAttachment, removeAttachment, replaceAttachment, replaceAttachment |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public <T> T getProxyAttachment(AttachmentKey<T> key)
T
- the value typekey
- the attachment key
null
if there is nonepublic <T> T removeProxyAttachment(AttachmentKey<T> key)
T
- the value typekey
- the attachment key
null
if there is nonepublic EJBClientContext getClientContext()
public Map<String,Object> getContextData()
InvocationContext.getContextData()
method, and thus
can be used to pass data from the client to the server (as long as all map values are
Serializable
).
public EJBLocator<?> getLocator()
public void sendRequest() throws Exception
Exception
- if the request was not successfully sentpublic Object getResult() throws Exception
EJBClientInterceptor.handleInvocationResult(EJBClientInvocationContext)
.
Exception
- if the invocation did not succeedpublic void discardResult() throws IllegalStateException
EJBClientInterceptor.handleInvocationResult(EJBClientInvocationContext)
.
IllegalStateException
- if there is no result to discardprotected EJBReceiver getReceiver()
public Object getInvokedProxy()
public Method getInvokedMethod()
public Object[] getParameters()
public Class<?> getViewClass()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
JBoss EJB client 1.0.3.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |