public class LoggerProxyFactory<T> extends Object implements ProxyFactory<T>, InvocationHandler
client| 限定符和类型 | 方法和说明 |
|---|---|
T |
buildProxy()
Build a
T proxy. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Inject logs to invocation process of
method. |
static <T> LoggerProxyFactory<T> |
newProxyFactory(T client)
Create a logger proxy factory for building proxy of
client |
public static <T> LoggerProxyFactory<T> newProxyFactory(T client)
clientclient - real client to build proxy onpublic T buildProxy()
T proxy.buildProxy 在接口中 ProxyFactory<T>Copyright © 2016. All rights reserved.