title: @Inject only working for POJOs created by CDI container?
body: <p>I just want to confirm that I fully understood the prerequisites for CDI to work. If I have a class A:</p>
  
  <pre><code>public class A {
      @Inject private B b;
  }
  </code></pre>
  
  <p>Now when I instantiate this class using:</p>
  
  <pre><code>A a = new A();
  </code></pre>
  
  <p>In that case, A.b will be null.</p>
  
  <p>But if I define in another class a member:</p>
  
  <pre><code>@Inject A a;
  </code></pre>
  
  <p>and later use a, a.b will be correctly populated?</p>
  
  <p>Does CDI only work if the class requiring an injection was also created by CDI container? Or what am I missing if injections turn out to be null while creating a POJO using ordinary instantiation with new (yes, I got beans.xml in place)?</p>