|
||||||||||
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(String containerName,
String containerGuid,
org.jboss.aop.advice.Interceptor[] interceptors,
String businessInterfaceType,
Object target)
Constructor |
Method Summary | |
---|---|
protected org.jboss.ejb3.proxy.spi.container.InvokableContext |
createRemoteProxyToContainer(String url)
Creates and returns a Remoting Proxy to invoke upon the container This implementation is marked as FIXME as remoting should be an add-on capability atop ejb3-proxy |
String |
getBusinessInterfaceType()
|
protected abstract org.jboss.ejb3.proxy.spi.container.InvokableContext |
getContainer()
Obtains the Container upon which this Proxy should invoke |
String |
getContainerGuid()
|
protected org.jboss.ejb3.proxy.spi.container.InvokableContext |
getContainerLocally()
Returns the container housed locally |
String |
getContainerName()
|
org.jboss.aop.advice.Interceptor[] |
getInterceptors()
|
Object |
getTarget()
|
protected Object |
handleInvocationDirectly(Object proxy,
Object[] args,
Method invokedMethod)
Handles the current invocation directly in this invocation handler. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Required "invoke" as defined by InvocationHandler interface |
Object |
invoke(Object proxy,
org.jboss.ejb3.common.lang.SerializableMethod method,
Object[] args)
Overloaded "invoke" which takes into account a SerializableMethod
view |
protected boolean |
invokeEquals(Object proxy,
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(Object proxy)
Handles invocation of "hashCode()" upon the proxy |
void |
setBusinessInterfaceType(String businessInterfaceType)
|
void |
setContainerGuid(String containerGuid)
|
void |
setContainerName(String containerName)
|
void |
setInterceptors(org.jboss.aop.advice.Interceptor[] interceptors)
|
void |
setTarget(Object target)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SessionProxyInvocationHandlerBase(String containerName, String containerGuid, org.jboss.aop.advice.Interceptor[] interceptors, String businessInterfaceType, 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 Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public Object invoke(Object proxy, org.jboss.ejb3.common.lang.SerializableMethod method, Object[] args) throws Throwable
SerializableMethod
view
proxy
- method
- args
-
Throwable
protected Object handleInvocationDirectly(Object proxy, Object[] args, Method invokedMethod) throws NotEligibleForDirectInvocationException
proxy
- args
- Arguments of the current invocationinvokedMethod
- The method invoked
NotEligibleForDirectInvocationException
protected boolean invokeEquals(Object proxy, Object argument)
proxy
- args
-
protected int invokeHashCode(Object proxy)
proxy
-
protected org.jboss.ejb3.proxy.spi.container.InvokableContext getContainerLocally()
protected org.jboss.ejb3.proxy.spi.container.InvokableContext createRemoteProxyToContainer(String url)
url
- The location of the remote host holding the Container
protected abstract org.jboss.ejb3.proxy.spi.container.InvokableContext getContainer()
public Object getTarget()
getTarget
in interface SessionProxyInvocationHandler
public void setTarget(Object target)
setTarget
in interface SessionProxyInvocationHandler
public String getContainerName()
getContainerName
in interface SessionProxyInvocationHandler
public void setContainerName(String containerName)
setContainerName
in interface SessionProxyInvocationHandler
public org.jboss.aop.advice.Interceptor[] getInterceptors()
getInterceptors
in interface SessionProxyInvocationHandler
public void setInterceptors(org.jboss.aop.advice.Interceptor[] interceptors)
setInterceptors
in interface SessionProxyInvocationHandler
public String getContainerGuid()
getContainerGuid
in interface SessionProxyInvocationHandler
public void setContainerGuid(String containerGuid)
setContainerGuid
in interface SessionProxyInvocationHandler
public String getBusinessInterfaceType()
getBusinessInterfaceType
in interface SessionProxyInvocationHandler
public void setBusinessInterfaceType(String businessInterfaceType)
setBusinessInterfaceType
in interface SessionProxyInvocationHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |