示例#1
0
  public Object newInstance(InjectionContext injectionContext) {
    // Try all bound constructors, in order
    ConstructionException exception = null;
    for (ConstructorModel constructorModel : boundConstructors) {
      try {
        return constructorModel.newInstance(injectionContext);
      } catch (ConstructionException e) {
        exception = e;
      }
    }

    throw exception;
  }