public class Crane4jTemplate.OpsForProxy extends Object
| 构造器和说明 |
|---|
OpsForProxy() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
createAutoOperateProxy(T target)
Create a proxy instance for the target object
if the target object has methods annotated with
AutoOperate. |
<T> T |
createOperatorProxy(@NonNull Class<T> operator)
Create a proxy instance for the specified operator interface.
|
Crane4jTemplate.OpsForComponent |
opsForComponent()
Get ops for components.
|
Crane4jTemplate.OpsForContainer |
opsForContainer()
Get ops for container.
|
Crane4jTemplate |
opsForExecute()
Get ops for execute.
|
Crane4jTemplate.OpsForProxy |
registerOperatorProxyMethodFactory(@NonNull OperatorProxyMethodFactory proxyMethodFactory)
Register operator proxy method factory.
|
public Crane4jTemplate opsForExecute()
public Crane4jTemplate.OpsForComponent opsForComponent()
public Crane4jTemplate.OpsForContainer opsForContainer()
public <T> T createAutoOperateProxy(T target)
Create a proxy instance for the target object
if the target object has methods annotated with AutoOperate.
When calling the annotated method of the target object,
the method will be automatically filled with the necessary parameters or return values.
T - target typetarget - target objectAutoOperate,
otherwise return the original target object.AutoOperateProxy.wrapIfNecessary(T)public <T> T createOperatorProxy(@NonNull Class<T> operator)
Create a proxy instance for the specified operator interface.
T - operator typeoperator - operatorOperatorProxyFactory.get(java.lang.Class<T>),
registerOperatorProxyMethodFactory(cn.crane4j.core.support.operator.OperatorProxyMethodFactory)public Crane4jTemplate.OpsForProxy registerOperatorProxyMethodFactory(@NonNull OperatorProxyMethodFactory proxyMethodFactory)
proxyMethodFactory - proxy method factoryOperatorProxyFactory.addProxyMethodFactory(cn.crane4j.core.support.operator.OperatorProxyMethodFactory)Copyright © 2024. All rights reserved.