Package org.seppiko.commons.utils
Class ProxyFactoryUtil
java.lang.Object
org.seppiko.commons.utils.ProxyFactoryUtil
public class ProxyFactoryUtil
extends java.lang.Object
Proxy factory
- Author:
- Leonard Woo
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceProxyFactoryUtil.ProxyHandler<T>interface proxy implement class interface -
Constructor Summary
Constructors Constructor Description ProxyFactoryUtil() -
Method Summary
Modifier and Type Method Description static <T> TnewInstance(java.lang.Class<T> clazz, ProxyFactoryUtil.ProxyHandler<T> handler)call interface new instance from proxyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ProxyFactoryUtil
public ProxyFactoryUtil()
-
-
Method Details
-
newInstance
public static <T> T newInstance(java.lang.Class<T> clazz, ProxyFactoryUtil.ProxyHandler<T> handler)call interface new instance from proxy- Type Parameters:
T- interface class type- Parameters:
clazz- interface classhandler- interface method invoke- Returns:
- interface method invoke return object
-