title: OSGI: What is the best approach to wait for a declarative service component to start?
body: <p>I have the following problem:</p>
  
  <p>1: An OSGI bundle A (equinox) is activated, and the activator parses an XML file<br>
  2: in the XML file, a declarative service is requested, which is present in another bundle (B)<br>
  3: bundle B is not activated yet, so the activator of bundle A needs to wait <br></p>
  
  <p>I know how to approach this purely in DS, but the parsing needs to be carried out in the activator. Also I do not want to fool around with start levels and the likes. Ideally, I would want to be able to register the service provided by bundle B when needed. </p>
  
  <p>Is there an elegant way to achieve this?</p>
  
  <p>Thanks,</p>
  
  <p>Kees</p>