org.jboss.ejb3.proxy.handler.session.stateful
Class StatefulProxyInvocationHandlerBase

java.lang.Object
  extended by org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase
      extended by org.jboss.ejb3.proxy.handler.session.SessionProxyInvocationHandlerBase
          extended by org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase
              extended by org.jboss.ejb3.proxy.handler.session.stateful.StatefulProxyInvocationHandlerBase
All Implemented Interfaces:
java.io.Serializable, java.lang.reflect.InvocationHandler, ProxyInvocationHandler, SessionProxyInvocationHandler, SessionSpecProxyInvocationHandler, EjbProxy, SessionProxy, StatefulSessionProxy
Direct Known Subclasses:
StatefulLocalProxyInvocationHandler, StatefulRemoteProxyInvocationHandler

public abstract class StatefulProxyInvocationHandlerBase
extends SessionSpecProxyInvocationHandlerBase
implements StatefulSessionProxy, java.io.Serializable

StatefulProxyInvocationHandlerBase Implementation of a SFSB Proxy Invocation Handler

See Also:
Serialized Form

Constructor Summary
StatefulProxyInvocationHandlerBase(java.lang.String containerName, java.lang.String containerGuid, org.jboss.aop.advice.Interceptor[] interceptors, java.lang.String businessInterfaceType)
          Constructor
 
Method Summary
protected  InvokableContext createRemoteProxyToContainer(java.lang.String url)
          Creates and returns a Remoting Proxy to invoke upon the container
 java.lang.Object getAsynchronousProxy(java.lang.Object proxy)
           
protected  StatefulProxyInvocationHandlerBase getInvocationHandler(java.lang.Object proxy)
           
 java.io.Serializable getSessionId()
          Obtains the Session ID for this SFSB instance
protected  boolean invokeEquals(java.lang.Object proxy, java.lang.Object argument)
          EJB 3.0 Core Specification 3.4.5.1 Determines Equality for SFSB Proxies
protected  int invokeHashCode(java.lang.Object proxy)
          Handles invocation of "hashCode()" upon the proxy
 void setSessionId(java.io.Serializable sessionId)
          Sets the Session ID for this SFSB instance
 
Methods inherited from class org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase
getBusinessInterfaceType, invoke, setBusinessInterfaceType
 
Methods inherited from class org.jboss.ejb3.proxy.handler.session.SessionProxyInvocationHandlerBase
getContainer, getContainerLocally
 
Methods inherited from class org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase
getContainerGuid, getContainerName, getInterceptors, handleInvocationDirectly, setContainerName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatefulProxyInvocationHandlerBase

public StatefulProxyInvocationHandlerBase(java.lang.String containerName,
                                          java.lang.String containerGuid,
                                          org.jboss.aop.advice.Interceptor[] interceptors,
                                          java.lang.String businessInterfaceType)
Constructor

Parameters:
containerName - The name of the target container
containerGuid - The globally-unique name of the container
businessInterfaceType - The possibly null businessInterfaceType marking this invocation hander as specific to a given EJB3 Business Interface
interceptors - The interceptors to apply to invocations upon this handler
Method Detail

getSessionId

public java.io.Serializable getSessionId()
Obtains the Session ID for this SFSB instance

Specified by:
getSessionId in interface StatefulSessionProxy
Returns:

setSessionId

public void setSessionId(java.io.Serializable sessionId)
Sets the Session ID for this SFSB instance

Specified by:
setSessionId in interface StatefulSessionProxy
Parameters:
sessionId -

invokeEquals

protected boolean invokeEquals(java.lang.Object proxy,
                               java.lang.Object argument)
EJB 3.0 Core Specification 3.4.5.1 Determines Equality for SFSB Proxies

Specified by:
invokeEquals in class ProxyInvocationHandlerBase
Parameters:
proxy -
argument -
Returns:

invokeHashCode

protected int invokeHashCode(java.lang.Object proxy)
Handles invocation of "hashCode()" upon the proxy

Specified by:
invokeHashCode in class ProxyInvocationHandlerBase
Parameters:
proxy -
Returns:

createRemoteProxyToContainer

protected InvokableContext createRemoteProxyToContainer(java.lang.String url)
Creates and returns a Remoting Proxy to invoke upon the container

Parameters:
url - The location of the remote host holding the Container
Returns:

getInvocationHandler

protected StatefulProxyInvocationHandlerBase getInvocationHandler(java.lang.Object proxy)

getAsynchronousProxy

public java.lang.Object getAsynchronousProxy(java.lang.Object proxy)
Specified by:
getAsynchronousProxy in interface ProxyInvocationHandler