public class DefaultProxyFactory extends Object implements ProxyFactory
ProxyFactory.
Supports JDK dynamic proxy and ByteButty proxy.ProxyFactory.Proxied| 限定符和类型 | 字段和说明 |
|---|---|
static DefaultProxyFactory |
INSTANCE |
| 构造器和说明 |
|---|
DefaultProxyFactory() |
public static final DefaultProxyFactory INSTANCE
public <T> T createProxy(InvocationHandler handler, Class<?>... proxyTypes)
Create a proxy object for the specified types.
If all proxy types are interfaces, use JDK dynamic proxy,
otherwise, use ByteButty proxy.
All proxy objects will implement the Proxied interface.
createProxy 在接口中 ProxyFactoryT - the type of the proxy objecthandler - invocation handlerproxyTypes - proxy typeCopyright © 2024. All rights reserved.