public Builder ctorImpl(String className, Class<?>... argClasses) {
      // don't do any work if an implementation has been found
      if (method != null) {
        return this;
      }

      try {
        this.method = new DynConstructors.Builder().impl(className, argClasses).buildChecked();
      } catch (NoSuchMethodException e) {
        // not the right implementation
      }
      return this;
    }
Checks for a method implementation.

<p>The name passed to the constructor is the method name used.

@param targetClass a class instance
@param argClasses argument classes for the method
@return this Builder for method chaining
@see java.lang.Class#forName(String)
@see java.lang.Class#getMethod(String, Class[])
amoro-common/src/main/java/org/apache/amoro/utils/DynMethods.java