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, java.lang.reflect.InvocationHandler handler)
          Wraps the existing Proxy in a new Proxy to extend functionality, adding support of the specified interfaces via the specified InvocationHandler May be used to, at runtime, extend a service
static
<T> T
mixinProxy(java.lang.Object delegate, java.lang.Class<?>[] additionalInterfaces, java.lang.reflect.InvocationHandler handler, T expectedType)
          Wraps the existing Proxy in a new Proxy to extend functionality, adding support of the specified interfaces via the specified InvocationHandler May be used to, at runtime, extend a service
static java.lang.Object mixinProxy(java.lang.Object delegate, java.lang.reflect.InvocationHandler handler)
          Wraps the existing Proxy in a new Proxy to extend functionality, using the specified InvocationHandler 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.reflect.InvocationHandler handler)
Wraps the existing Proxy in a new Proxy to extend functionality, using the specified InvocationHandler May be used to, at runtime, extend a service


mixinProxy

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


mixinProxy

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