title: implementing component factory for multiple class with same names and retrieving through property/filter values
body: <p>I am working on OSGi(Rev 4) project in which i have to use karaf registry. Either i can declare my implementation as Component or Service. ie) I can register my component/service in karaf with component factory/service Factory to produce objects of Component/Service. 
  I am having multiple class implementations, so with Service factory i hope it is achievable with single class ie) by registering all the services with the same name with different property/filter values.While retrieving service i can query with the properties so that only one retrieval class is enough. 
  Project structure  </p>
  
  <pre><code> 1. Service(interface)
           - implementation 1
           - implementation 2  (different implemenations)
           - ....
   2. Factory(register as a component factory)
   3. FactoryManager(which produces objects)
  </code></pre>
  
  <p>I have raise an another <a href="https://stackoverflow.com/questions/33567350/karaf-not-displaying-any-error-while-component-factory-example">question</a> in SO with my same project structure. Can anybody please tell me whether this kind of scenario is achievable through component factory ie) registering with same factory name<code>(factory="com.java.test.ClassImpl")</code> with different properties and retrieving through the property values(dynamic invocation of target attribute). 
  In more precise manner</p>
  
  <p>first factory</p>
  
  <pre><code> @Component(name = "ExampleComponentFactoryServiceProvider", factory = "example.factory.provider")
      public class ExampleComponentFactoryServiceProvider implements ExampleFactoryService {
  </code></pre>
  
  <p>second factory</p>
  
  <pre><code>@Component(name = "ExampleComponentFactoryServiceProvider1", factory = "example.factory.provider")
  public class ExampleComponentFactoryServiceProvider1 implements ExampleFactoryService {
  </code></pre>
  
  <p>The above are two factories registered with same factory name. My expectation registering with different property values. 
  Retrieval part in activate()method</p>
  
  <pre><code>System.out.println("activate in manager !!!!");
          Dictionary&lt;String, String&gt; hashMap = new Hashtable&lt;String, String&gt;();
          hashMap.put("component.name", "ExampleComponentFactoryServiceProvider");
          instance = factory.newInstance(hashMap);
          service = (ExampleFactoryService) instance.getInstance();
          System.out.println("service  = " + service.toString());
  
          Dictionary&lt;String, String&gt; hashMap1 = new Hashtable&lt;String, String&gt;();
          hashMap1.put("component.name", "ExampleComponentFactoryServiceProvider1");
          instance = factory.newInstance(hashMap1);
          service = (ExampleFactoryService) instance.getInstance();
          System.out.println("Service = " + service.toString());
  </code></pre>
  
  <p>In the above code , component factory tries to create two different instances by filtering through property. But it creates the first one and creates the second one if first one is stopped. how to create objects through same factory id with different target attribute generated at runtime.</p>