类 DataBindingMethodResolver

    • 方法详细资料

      • resolve

        public MethodExecutor resolve​(EvaluationContext context,
                                      Object targetObject,
                                      String name,
                                      List<TypeDescriptor> argumentTypes)
                               throws AccessException
        从类复制的说明: ReflectiveMethodResolver
        Locate a method on a type. There are three kinds of match that might occur:
        1. an exact match where the types of the arguments match the types of the constructor
        2. an in-exact match where the types we are looking for are subtypes of those defined on the constructor
        3. a match where we are able to convert the arguments into those expected by the constructor, according to the registered type converter
        指定者:
        resolve 在接口中 MethodResolver
        覆盖:
        resolve 在类中 ReflectiveMethodResolver
        参数:
        context - the current evaluation context
        targetObject - the object upon which the method is being called
        argumentTypes - 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
      • isCandidateForInvocation

        protected boolean isCandidateForInvocation​(Method method,
                                                   Class<?> targetClass)
        从类复制的说明: ReflectiveMethodResolver
        Determine whether the given Method is 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 sand non-user-declared methods on the Object base class.

        覆盖:
        isCandidateForInvocation 在类中 ReflectiveMethodResolver
        参数:
        method - the Method to evaluate
        targetClass - the concrete target class that is being introspected