org.jboss.ejb3.proxy.handler
Class ProxyInvocationHandlerBase

java.lang.Object
  extended by org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase
All Implemented Interfaces:
java.io.Serializable, java.lang.reflect.InvocationHandler, ProxyInvocationHandler
Direct Known Subclasses:
SessionProxyInvocationHandlerBase

public abstract class ProxyInvocationHandlerBase
extends java.lang.Object
implements ProxyInvocationHandler, java.io.Serializable

ProxyInvocationHandlerBase Abstract base from which all Proxy InvocationHandlers may extend

See Also:
Serialized Form

Constructor Summary
protected ProxyInvocationHandlerBase(java.lang.String containerName, java.lang.String containerGuid, org.jboss.aop.advice.Interceptor[] interceptors)
          Constructor
 
Method Summary
protected  java.lang.String getContainerGuid()
           
protected  java.lang.String getContainerName()
           
protected  org.jboss.aop.advice.Interceptor[] getInterceptors()
           
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.
protected abstract  boolean invokeEquals(java.lang.Object proxy, java.lang.Object argument)
          Handles invocation of "equals(Object)" upon the Proxy
protected abstract  int invokeHashCode(java.lang.Object proxy)
          Handles invocation of "hashCode()" upon the proxy
protected  void setContainerName(java.lang.String containerName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.ejb3.proxy.handler.ProxyInvocationHandler
getAsynchronousProxy
 
Methods inherited from interface java.lang.reflect.InvocationHandler
invoke
 

Constructor Detail

ProxyInvocationHandlerBase

protected ProxyInvocationHandlerBase(java.lang.String containerName,
                                     java.lang.String containerGuid,
                                     org.jboss.aop.advice.Interceptor[] interceptors)
Constructor

Parameters:
containerName - The name of the target container
containerGuid - The globally-unique name of the container
interceptors - The interceptors to apply to invocations upon this handler
Method Detail

handleInvocationDirectly

protected java.lang.Object handleInvocationDirectly(java.lang.Object proxy,
                                                    java.lang.Object[] args,
                                                    java.lang.reflect.Method invokedMethod)
                                             throws NotEligibleForDirectInvocationException
Handles the current invocation directly in this invocation handler. Only a subset of method invocations are eligible for this treatment, else a NotEligibleForDirectInvocationException will be thrown

Parameters:
proxy -
args - Arguments of the current invocation
invokedMethod - The method invoked
Returns:
Throws:
NotEligibleForDirectInvocationException

invokeEquals

protected abstract boolean invokeEquals(java.lang.Object proxy,
                                        java.lang.Object argument)
Handles invocation of "equals(Object)" upon the Proxy

Parameters:
proxy -
args -
Returns:

invokeHashCode

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

Parameters:
proxy -
Returns:

getContainerName

protected java.lang.String getContainerName()

setContainerName

protected void setContainerName(java.lang.String containerName)

getInterceptors

protected org.jboss.aop.advice.Interceptor[] getInterceptors()

getContainerGuid

protected java.lang.String getContainerGuid()