public class OperatorProxyFactory extends Object
Operator,
OperatorProxyMethodFactory,
ProxyFactory| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
OperatorProxyFactory.OperatorProxy
Operator proxy.
|
static interface |
OperatorProxyFactory.ProxiedOperator
Identification interface, used to indicate that the current object is a proxy object.
|
| 构造器和说明 |
|---|
OperatorProxyFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addProxyMethodFactory(OperatorProxyMethodFactory proxyMethodFactory)
Add a
OperatorProxyMethodFactory instance. |
protected <T> @NonNull OperatorProxyFactory.OperatorProxy |
doCreateOperatorProxy(Class<T> operatorType,
Map<String,MethodInvoker> proxyMethods)
Create proxy object for operator interface.
|
<T> T |
get(Class<T> operatorType)
Get the proxy object of the specified operator interface that annotated by
Operator. |
public void addProxyMethodFactory(OperatorProxyMethodFactory proxyMethodFactory)
OperatorProxyMethodFactory instance.proxyMethodFactory - proxy method factorypublic <T> T get(Class<T> operatorType)
Operator.operatorType - operator typeOperator@NonNull protected <T> @NonNull OperatorProxyFactory.OperatorProxy doCreateOperatorProxy(Class<T> operatorType, Map<String,MethodInvoker> proxyMethods)
operatorType - operator typeproxyMethods - proxied methods with full method names;Copyright © 2024. All rights reserved.