类 Proxies
- java.lang.Object
-
- net.dongliu.commons.reflect.Proxies
-
public class Proxies extends java.lang.ObjectUtils method for reflect Proxy
-
-
方法详细资料
-
newProxy
public static <T> T newProxy(java.lang.Class<T> cls, java.lang.reflect.InvocationHandler handler)Create Proxy form interface. This is a convenient alias forProxy.newProxyInstance(ClassLoader, Class[], InvocationHandler)- 类型参数:
T- the interface type- 参数:
cls- the interface classhandler- the InvocationHandler- 返回:
- new instance implement interface
-
-