public final class ProxyFactory extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
getEnhancedProxy(Class<T> requiredClazz,
Class<?>[] params,
Object[] values,
net.sf.cglib.proxy.MethodInterceptor interceptor)
It returns some proxies created by CGLIB.
|
static <T> T |
getEnhancedProxy(Class<T> requiredClazz,
net.sf.cglib.proxy.MethodInterceptor interceptor) |
public static <T> T getEnhancedProxy(Class<T> requiredClazz, net.sf.cglib.proxy.MethodInterceptor interceptor)
public static <T> T getEnhancedProxy(Class<T> requiredClazz, Class<?>[] params, Object[] values, net.sf.cglib.proxy.MethodInterceptor interceptor)
requiredClazz
- 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.interceptor
- is the instance of MethodInterceptor
Copyright © 2016. All rights reserved.