net.sf.morph.util
Class ProxyUtils

java.lang.Object
  extended by net.sf.morph.util.ProxyUtils

public abstract class ProxyUtils
extends java.lang.Object

Proxy utility methods.

Since:
Morph 1.1
Author:
Matt Benson

Constructor Summary
ProxyUtils()
           
 
Method Summary
static java.lang.reflect.Proxy getProxy(java.lang.Object object, java.lang.Class clazz)
          Get a Proxy adding the specified interface to the specified object.
static java.lang.reflect.Proxy getProxy(java.lang.Object object, java.lang.Class[] addInterfaces, java.lang.reflect.InvocationHandler ih)
          Get a Proxy adding the specified interfaces to the specified object.
static java.lang.reflect.Proxy getProxy(java.lang.Object object, java.lang.Class clazz, java.lang.reflect.InvocationHandler ih)
          Get a Proxy adding the specified interface to the specified object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyUtils

public ProxyUtils()
Method Detail

getProxy

public static java.lang.reflect.Proxy getProxy(java.lang.Object object,
                                               java.lang.Class clazz)
Get a Proxy adding the specified interface to the specified object.

Parameters:
object -
clazz -
Returns:
Proxy

getProxy

public static java.lang.reflect.Proxy getProxy(java.lang.Object object,
                                               java.lang.Class clazz,
                                               java.lang.reflect.InvocationHandler ih)
Get a Proxy adding the specified interface to the specified object.

Parameters:
object -
clazz -
ih -
Returns:
Proxy

getProxy

public static java.lang.reflect.Proxy getProxy(java.lang.Object object,
                                               java.lang.Class[] addInterfaces,
                                               java.lang.reflect.InvocationHandler ih)
Get a Proxy adding the specified interfaces to the specified object.

Parameters:
object -
addInterfaces -
ih -
Returns:
Proxy


Copyright © 2004-2008.