|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase
public abstract class SessionProxyInvocationHandlerBase
SessionProxyInvocationHandlerBase Abstract base from which all JBoss Session Proxy InvocationHandlers may extend
| Constructor Summary | |
|---|---|
protected |
SessionProxyInvocationHandlerBase(java.lang.String containerName,
java.lang.String containerGuid,
org.jboss.aop.advice.Interceptor[] interceptors,
java.lang.String businessInterfaceType,
java.lang.Object target)
Constructor |
| Method Summary | |
|---|---|
protected boolean |
canBeHandledDirectly(java.lang.reflect.Method invokedMethod)
Returns whether or not this handler is capable of handling the invoked method request directly, without passing along to the container |
java.lang.String |
getBusinessInterfaceType()
|
protected abstract org.jboss.ejb3.proxy.spi.container.InvokableContext |
getContainer(java.lang.reflect.Method method,
java.lang.Object[] args)
Obtains the Container upon which this Proxy should invoke |
java.lang.String |
getContainerGuid()
|
java.lang.String |
getContainerName()
|
org.jboss.aop.advice.Interceptor[] |
getInterceptors()
|
java.lang.Object |
getTarget()
|
protected java.lang.Object |
handleInvocationDirectly(java.lang.Object proxy,
java.lang.Object[] args,
java.lang.reflect.Method invokedMethod)
Handles the current invocation directly in this invocation handler. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
protected boolean |
invokeEquals(java.lang.Object proxy,
java.lang.Object argument)
Handles invocation of "equals(Object)" upon a Session Proxy EJB 3.0 Specification 3.4.5.1, 3.4.5.2 |
protected int |
invokeHashCode(java.lang.Object proxy)
Handles invocation of "hashCode()" upon the proxy |
void |
setBusinessInterfaceType(java.lang.String businessInterfaceType)
|
void |
setContainerGuid(java.lang.String containerGuid)
|
void |
setContainerName(java.lang.String containerName)
|
void |
setInterceptors(org.jboss.aop.advice.Interceptor[] interceptors)
|
void |
setTarget(java.lang.Object target)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SessionProxyInvocationHandlerBase(java.lang.String containerName,
java.lang.String containerGuid,
org.jboss.aop.advice.Interceptor[] interceptors,
java.lang.String businessInterfaceType,
java.lang.Object target)
containerName - The name of the target ContainercontainerGuid - The globally-unique name of the containerinterceptors - The interceptors to apply to invocations upon this handlerbusinessInterfaceType - Possibly null FQN of business interfacetarget - The target object (Session ID)| Method Detail |
|---|
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.ThrowableInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
protected java.lang.Object handleInvocationDirectly(java.lang.Object proxy,
java.lang.Object[] args,
java.lang.reflect.Method invokedMethod)
throws NotEligibleForDirectInvocationException
proxy - args - Arguments of the current invocationinvokedMethod - The method invoked
NotEligibleForDirectInvocationExceptionprotected boolean canBeHandledDirectly(java.lang.reflect.Method invokedMethod)
invokedMethod - The invoked Method
protected boolean invokeEquals(java.lang.Object proxy,
java.lang.Object argument)
proxy - args -
protected int invokeHashCode(java.lang.Object proxy)
proxy -
protected abstract org.jboss.ejb3.proxy.spi.container.InvokableContext getContainer(java.lang.reflect.Method method,
java.lang.Object[] args)
public java.lang.Object getTarget()
getTarget in interface SessionProxyInvocationHandlerpublic void setTarget(java.lang.Object target)
setTarget in interface SessionProxyInvocationHandlerpublic java.lang.String getContainerName()
getContainerName in interface SessionProxyInvocationHandlerpublic void setContainerName(java.lang.String containerName)
setContainerName in interface SessionProxyInvocationHandlerpublic org.jboss.aop.advice.Interceptor[] getInterceptors()
getInterceptors in interface SessionProxyInvocationHandlerpublic void setInterceptors(org.jboss.aop.advice.Interceptor[] interceptors)
setInterceptors in interface SessionProxyInvocationHandlerpublic java.lang.String getContainerGuid()
getContainerGuid in interface SessionProxyInvocationHandlerpublic void setContainerGuid(java.lang.String containerGuid)
setContainerGuid in interface SessionProxyInvocationHandlerpublic java.lang.String getBusinessInterfaceType()
getBusinessInterfaceType in interface SessionProxyInvocationHandlerpublic void setBusinessInterfaceType(java.lang.String businessInterfaceType)
setBusinessInterfaceType in interface SessionProxyInvocationHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||