org.springframework.expression.MethodResolver variant for data binding
purposes, using reflection to access instance methods on a given target object.
This accessor does not resolve static methods and also no technical methods
on java.lang.Object or java.lang.Class.
For unrestricted resolution, choose ReflectiveMethodResolver instead.
forInstanceMethodInvocation(), DataBindingPropertyAccessor
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DataBindingMethodResolver | forInstanceMethodInvocation()
Create a new data-binding method resolver for instance method resolution. |
| protected boolean | isCandidateForInvocation(Method
the Method to evaluate method, Class<?> the concrete target class that is being introspected targetClass)Overrides org. Method is a candidate for method resolution
on an instance of the given target class.
|
| public MethodExecutor | resolve(EvaluationContext
the current evaluation context context, Object the object upon which the method is being called targetObject, String the name of the method name, List<TypeDescriptor> the types of arguments that the method must be able
to handle argumentTypes)Overrides org. Implements org. |
| DataBindingMethodResolver | back to summary |
|---|---|
| private DataBindingMethodResolver() | |
| forInstanceMethodInvocation | back to summary |
|---|---|
| public static DataBindingMethodResolver forInstanceMethodInvocation() Create a new data-binding method resolver for instance method resolution. | |
| isCandidateForInvocation | back to summary |
|---|---|
| protected boolean isCandidateForInvocation(Method method, Class<?> targetClass) Overrides org. Doc from org. Determine whether the given The default implementation considers any method as a candidate, even for
static methods and non-user-declared methods on the | |
| resolve | back to summary |
|---|---|
| public MethodExecutor resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) throws AccessException Overrides org. Implements org. Doc from org. Locate a method on the type. There are three kinds of matches that might occur:
| |