Exemple #1
0
 @Override
 public T supply(Dependency<? super T> dependency, Injector injector) {
   final Supplier<? extends T> supplier = injector.resolve(dependency.anyTyped(type));
   return supplier.supply(dependency, injector);
 }
Exemple #2
0
 @Override
 public final T supply(Dependency<? super T> dependency, Injector injector) {
   Type<?> elementType = dependency.getType().parameter(0);
   return bridge(supplyArray(dependency.anyTyped(elementType.getArrayType()), injector));
 }