private void addInjectionPointDependencies(InjectionPoint injectionPoint) { // Do not consider dependencies coming from optional injections. if (injectionPoint.isOptional()) { return; } for (Dependency<?> dependency : injectionPoint.getDependencies()) { Key<?> key = dependency.getKey(); bindingsObserved.add(BindingInfo.create(key)); } }
protected Void addBindingInfo(Binding<? extends T> binding, Key<?> boundKey, Object instance) { bindingsObserved.add(BindingInfo.create(binding, boundKey, instance)); return null; }