title: How to dynamically update references in an OSGi component?
body: <p>I have an OSGi component <code>MyComponent</code> . </p>
  
  <p>This component has reference to a service <code>MyService</code>. Now <code>MyService</code> has a couple of implementations <code>MyServiceImpl1</code> and <code>MyServiceImpl2</code>. <code>MyComponent</code> also has property <code>MyProperty</code>. </p>
  
  <p>Now what I want is that whenever <code>MyProperty</code> is 1, <code>MyComponent.MyService</code> binds to <code>MyServiceImpl1</code>. And if I change <code>MyProperty</code> to 2, <code>MyComponent.MyService</code> dynamically updates the <code>MyService</code> binding  to `MyServiceImpl2.</p>
  
  <p>How do I acheive this? For reference, I am using Apache Felix container and would prefer to avoid lower level OSGi apis.</p>