类 ReflectiveConstructorResolver

    • 方法详细资料

      • resolve

        public ConstructorExecutor resolve​(EvaluationContext context,
                                           String typeName,
                                           List<TypeDescriptor> argumentTypes)
                                    throws AccessException
        Locate a constructor on the 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 在接口中 ConstructorResolver
        参数:
        context - the current evaluation context
        typeName - the type upon which to look for the constructor
        argumentTypes - the arguments that the constructor must be able to handle
        返回:
        a ConstructorExecutor that can invoke the constructor, or null if non found
        抛出:
        AccessException