public abstract class ReflectiveMethodInvoker extends Object implements MethodInvoker
MethodInvoker implementation based on JDK reflection.| 限定符和类型 | 类和说明 |
|---|---|
static class |
ReflectiveMethodInvoker.InvocationMethodInvoker
Create a
MethodInvoker from the given method. |
static class |
ReflectiveMethodInvoker.ProxyMethodInvoker
A
MethodInvoker implementation for JDK proxy object, which invoke method on proxy object. |
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
alignArguments |
protected Method |
method |
protected Object |
target |
| 构造器和说明 |
|---|
ReflectiveMethodInvoker() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ReflectiveMethodInvoker |
create(@Nullable Object target,
Method method,
boolean alignArguments)
Create a
ReflectiveMethodInvoker from the given method. |
Object |
invoke(Object target,
Object... args)
Invoke method.
|
protected abstract Object |
invokeMethod(Object target,
Object... args)
Invoke method.
|
protected final Object target
protected final Method method
protected final boolean alignArguments
public static ReflectiveMethodInvoker create(@Nullable Object target, Method method, boolean alignArguments)
ReflectiveMethodInvoker from the given method.target - target, if null, use method's declaring class as targetmethod - methodalignArguments - align argumentsReflectiveMethodInvokerpublic Object invoke(Object target, Object... args)
invoke 在接口中 MethodInvokertarget - targetargs - argsCopyright © 2024. All rights reserved.