title: Service Factory implementation using declarative services in OSGi
body: <p>I am registering an OSGi service using OSGi declarative service and setting </p>
  
  <blockquote>
    <p>servicefactory="true"</p>
  </blockquote>
  
  <p>as follows.</p>
  
  <pre><code>&lt;scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="test.Configuration"&gt;
    &lt;implementation class="test.ConfigurationImpl"/&gt;
    &lt;service servicefactory="true"&gt;
       &lt;provide interface="test.Configuration"/&gt;
    &lt;/service&gt;
  &lt;/scr:component&gt;
  </code></pre>
  
  <p>I am trying to use the service multiple times from another bundle.
  But, it returns me the same instance of the service.</p>
  
  <p>What could possibly go wrong here ??</p>