public final class ProxyFactory
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getEnhancedProxy(java.lang.Class<T> cls,
java.lang.Class<?>[] params,
java.lang.Object[] values,
MethodCallListener listener)
Creates a proxy instance for the given class.
|
static <T> T |
getEnhancedProxy(java.lang.Class<T> requiredClazz,
MethodCallListener listener)
Creates a proxy instance for the given class with an empty constructor.
|
public static <T> T getEnhancedProxy(java.lang.Class<T> requiredClazz,
MethodCallListener listener)
T - The proxy object class.requiredClazz - is a Class whose instance should be createdlistener - is the instance of a method listener classpublic static <T> T getEnhancedProxy(java.lang.Class<T> cls,
java.lang.Class<?>[] params,
java.lang.Object[] values,
MethodCallListener listener)
T - The proxy object class.cls - is a Class whose instance should be createdparams - is an array of @link java.lang.Class}. It should be convenient to
parameter types of some declared constructor which belongs to desired
class.values - is an array of @link java.lang.Object}. It should be convenient to
parameter types of some declared constructor which belongs to desired
class.listener - is the instance of a method listener class