title: HK2 / Jersey does not Inject into non Resource class
body: <p>I am using jersey to inject POJOs on various locations. Here is my config:</p>
  
  <pre><code> register(new AbstractBinder() {
          @Override
          protected void configure() {
              bind(Bar.class).to(Bar.class).in(Singleton.class);
              bindFactory(FooFactory.class).to(Foo.class).in(Singleton.class);
              ...
          }
      });
  </code></pre>
  
  <p>FooFactory:</p>
  
  <pre><code>public class FooFactory implements Factory&lt;Foo&gt; {
      @Override
      public Foo provide() {
          return Foo.newInstance();
      }
  }
  </code></pre>
  
  <p>Injecting into a resource works:</p>
  
  <pre><code>@Path("/myresource")
  public class MyResource{
       @Inject
       protected Bar instance;
  }
  </code></pre>
  
  <p>But</p>
  
  <pre><code>public class Foo {
       @Inject
       protected Bar instance;
  }
  </code></pre>
  
  <p>does not. <code>Foo.instance</code> is null. Why? And how to make it work?</p>