Class DataBindingMethodResolver
java.lang.Object
org.springframework.expression.spel.support.ReflectiveMethodResolver
org.springframework.expression.spel.support.DataBindingMethodResolver
- All Implemented Interfaces:
- MethodResolver
An 
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.
- Since:
- 4.3.15
- Author:
- Juergen Hoeller
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionstatic DataBindingMethodResolverCreate a new data-binding method resolver for instance method resolution.protected booleanisCandidateForInvocation(Method method, Class<?> targetClass) Determine whether the givenMethodis a candidate for method resolution on an instance of the given target class.resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) Locate a method on the type.Methods inherited from class org.springframework.expression.spel.support.ReflectiveMethodResolvergetMethods, registerMethodFilter
- 
Method Details- 
resolve@Nullable public MethodExecutor resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) throws AccessException Description copied from class:ReflectiveMethodResolverLocate a method on the type.There are three kinds of matches that might occur: - An exact match where the types of the arguments match the types of the method.
- An inexact match where the types we are looking for are subtypes of those defined on the method.
- A match where we are able to convert the arguments into those expected by the method, according to the registered type converter.
 - Specified by:
- resolvein interface- MethodResolver
- Overrides:
- resolvein class- ReflectiveMethodResolver
- Parameters:
- context- the current evaluation context
- targetObject- the object upon which the method is being called
- name- the name of the method
- argumentTypes- the types of arguments that the method must be able to handle
- Returns:
- a MethodExecutorthat can invoke the method, ornullif the method cannot be found
- Throws:
- AccessException
 
- 
isCandidateForInvocationDescription copied from class:ReflectiveMethodResolverDetermine whether the givenMethodis a candidate for method resolution on an instance of the given target class.The default implementation considers any method as a candidate, even for static methods and non-user-declared methods on the Objectbase class.- Overrides:
- isCandidateForInvocationin class- ReflectiveMethodResolver
- Parameters:
- method- the Method to evaluate
- targetClass- the concrete target class that is being introspected
 
- 
forInstanceMethodInvocationCreate a new data-binding method resolver for instance method resolution.
 
-