@Override public Logger supply(Dependency<? super Logger> dependency, Injector injector) { if (dependency.isUntargeted()) { return LoggerFactory.getLogger("General"); } else { return LoggerFactory.getLogger(dependency.target().getType().getRawType()); } }
@Override public T supply(Dependency<? super T> dependency, Injector injector) { return factory.produce(dependency.getInstance(), dependency.target(1)); }