org.jboss.ejb3.common.proxy.spi
Class ProxyUtils

java.lang.Object
  extended by org.jboss.ejb3.common.proxy.spi.ProxyUtils

public class ProxyUtils
extends java.lang.Object

ProxyUtils Common Utility methods for use with the Proxies


Method Summary
static java.lang.Object mixinProxy(java.lang.Object delegate, java.lang.Class<?>[] additionalInterfaces, ChainedProcessingInvocationHandler chain)
          Wraps the existing Proxy in a new Proxy to extend functionality, adding support of the specified interfaces via the specified ChainedProcessingInvocationHandler (which contains a chain of processors) May be used to, at runtime, extend a service
static
<T> T
mixinProxy(java.lang.Object delegate, java.lang.Class<?>[] additionalInterfaces, ChainedProcessingInvocationHandler chain, T expectedType)
          Wraps the existing Proxy in a new Proxy to extend functionality, adding support of the specified interfaces via the specified ChainedProcessingInvocationHandler (which contains a chain of processors) May be used to, at runtime, extend a service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

mixinProxy

public static java.lang.Object mixinProxy(java.lang.Object delegate,
                                          java.lang.Class<?>[] additionalInterfaces,
                                          ChainedProcessingInvocationHandler chain)
Wraps the existing Proxy in a new Proxy to extend functionality, adding support of the specified interfaces via the specified ChainedProcessingInvocationHandler (which contains a chain of processors) May be used to, at runtime, extend a service


mixinProxy

public static <T> T mixinProxy(java.lang.Object delegate,
                               java.lang.Class<?>[] additionalInterfaces,
                               ChainedProcessingInvocationHandler chain,
                               T expectedType)
Wraps the existing Proxy in a new Proxy to extend functionality, adding support of the specified interfaces via the specified ChainedProcessingInvocationHandler (which contains a chain of processors) May be used to, at runtime, extend a service