title: Osgi Inject bean into Activator
body: <p>I have 3 classes , one is <strong>Activator</strong> and two others, '<em>mysqlConfiguration</em>' and '<em>BinaryLogListner</em>' where '<em>mysqlConfiguration</em>' is injected into '<em>BinaryLogListner</em>' using <strong>blueprint</strong>.</p>
  
  <p>This is my <strong>blueprint</strong> (the injection part):</p>
  
  <pre><code>&lt;bean id="binaryLogListnerBean" class="cdc.mysql.BinaryLogListner"&gt;
      &lt;property name="mysqlConfiguration" ref="configManagementMysql"&gt;&lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>I want to start the <em>BinaryLogListner</em> when the bundle starts , so I instanciated it from the <strong>Activator</strong> class with :</p>
  
  <pre><code>BinaryLogListner binaryLogListner = new BinaryLogListner();
  </code></pre>
  
  <p>When i try to use '<em>mysqlConfiguration</em>' which is injected into '<em>BinaryLogListner</em>' I will get a <strong>null pointer Exception</strong>.</p>
  
  <p>I want to know how to <strong>inject a bean into an activator</strong>, is this possible ? 
  Any thougts how to start beans in these situations?</p>