title: How do I get the OSGi BundleContext for an Eclipse RCP application?
body: <p>I have just gotten started with an Eclipse RCP application, it is basically just one of the provided "hello world" samples.</p>
  
  <p>When the application boots up, I would like to look at my command-line parameters and start some services according to them. I can get the command-line parameters in <em>IApplication.start</em>:</p>
  
  <pre><code>public Object start(IApplicationContext context) {
     String[] argv = (String[]) 
         context.getArguments().get(IApplicationContext.APPLICATION_ARGS)));
  }
  </code></pre>
  
  <p>But how do I get the BundleContext, so that I can register services? It does not seem to be in the IApplicationContext.</p>