title: Can I change what context is used to inject my handler?
body: <p>Our e3/e4 RCP application consists of a bunch of components with model fragments. Before the upgrade to e4 we had <em>Guice</em> modules in each of the components to inject members into the class.</p>
  
  <p>Currently we have set up a superclass to detect custom DoExecute and DoCanExecute annotations that uses the ContextInjectionFactory to invoke these methods with a custom context.</p>
  
  <p>Example:</p>
  
  <pre><code>        IEclipseContext subContext = (IEclipseContext) context.get(contextName);
      return (T) ContextInjectionFactory.invoke(this, annotation, subContext);
  </code></pre>
  
  <p>This succeeds in using a specific context to inject members while executing the methods we have created annotations for, but is a little ugly and will have to be done for all annotations that inject in e4.</p>
  
  <p>What is the best way in e4 to define and use a custom context? Note: We do not want to use the IApplicationContext as it would go against the modular setup per component.</p>