Пример #1
0
    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));
      }
    }
Пример #2
0
 protected Void addBindingInfo(Binding<? extends T> binding, Key<?> boundKey, Object instance) {
   bindingsObserved.add(BindingInfo.create(binding, boundKey, instance));
   return null;
 }