title: google guice injecting null
body: <p>I am trying to inject a vertx instance</p>
  
  <pre><code>public ServiceBinder(Vertx vertx) {
      this.vertx = vertx;
  }
  </code></pre>
  
  <p>I am binding like this</p>
  
  <pre><code>@Override
    protected void configure() {
      bind(Vertx.class).toInstance(this.vertx);
  }
  </code></pre>
  
  <p>And I am invoking injection like this</p>
  
  <pre><code>public class BaseVerticle extends AbstractVerticle{
  
  @Override
    public void start(Future&lt;Void&gt; startFuture) {
   Guice.createInjector(new ServiceBinder(vertx)).injectMembers(this);
  }
  
  
  }
  </code></pre>
  
  <p>Now I try to inject this in another class</p>
  
  <pre><code>public class DelegateFactory {
  
    @Inject
    private Vertx vertx;
  }
  </code></pre>
  
  <p>However here the value of vertx is null. Do I need inject DelegateFactory too?
   I tried annotating DelegateFactory with @Singleton, but it did not help</p>