title: Dynamically referencing a Service using Felix annotations
body: <p>I have created an interface which two different services are implementing. </p>
  
  <p>Consider interface is named as CheckReference and two different classes CheckReferenceImpl1 and CheckReferencImpl2 are implementing it.</p>
  
  <pre><code>@Component 
  @Service(value = CheckReference.class) 
  @Property(name = "domain", value = "ref1") 
  public class CheckReferenceImpl1 implements CheckReference 
  </code></pre>
  
  <p>And another one,</p>
  
  <pre><code>@Component 
  @Service(value = CheckReference.class) 
  @Property(name = "domain", value = "ref2") 
  public class CheckReferenceImpl2 implements CheckReference 
  </code></pre>
  
  <p>Now I want to dynamically load the implementation depending on my need using @Reference annotation dynamically. 
  So , In a check condition </p>
  
  <pre><code>public class LoadReference { 
      @Reference 
      CheckReference checkReference 
  
      if(check) { 
        // load checkReferencImpl1 
      } else { 
         // load checkReferenceImpl2 
      } 
  } 
  </code></pre>
  
  <p>Also I know that I can use target property to load specific implemenation. But that is static way. 
  But in order to do this dynamically , Not able to relate from specifications and tutorials how should I do this ?? </p>