接口 MethodResolver
public interface MethodResolver
A method resolver attempts locate a method and returns a command executor that can be used to invoke that method. The command executor will be cached but if it 'goes stale' the resolvers will be called again.- 从以下版本开始:
- 3.0
- 作者:
- Andy Clement
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 MethodExecutor
resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes)
Within the supplied context determine a suitable method on the supplied object that can handle the specified arguments.
方法详细资料
resolve
@Nullable MethodExecutor resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) throws AccessException
Within the supplied context determine a suitable method on the supplied object that can handle the specified arguments. Return aMethodExecutor
that can be used to invoke that method, ornull
if no method could be found.- 参数:
context
- the current evaluation contexttargetObject
- the object upon which the method is being calledargumentTypes
- the arguments that the constructor must be able to handle- 返回:
- a MethodExecutor that can invoke the method, or null if the method cannot be found
- 抛出:
AccessException