Esempio n. 1
0
    @Override
    public Void visit(StaticInjectionRequest staticInjectionRequest) {
      for (InjectionPoint injectionPoint : staticInjectionRequest.getInjectionPoints()) {
        addInjectionPointDependencies(injectionPoint);
      }

      return super.visit(staticInjectionRequest);
    }
 void validate() {
   Errors errorsForMember = errors.withSource(source);
   Set<InjectionPoint> injectionPoints;
   try {
     injectionPoints = request.getInjectionPoints();
   } catch (ConfigurationException e) {
     errors.merge(e.getErrorMessages());
     injectionPoints = e.getPartialValue();
   }
   memberInjectors =
       injector.membersInjectorStore.getInjectors(injectionPoints, errorsForMember);
 }
 public StaticInjection(InjectorImpl injector, StaticInjectionRequest request) {
   this.injector = injector;
   this.source = request.getSource();
   this.request = request;
 }