public InjectedFinder(Context context, Class<? extends ServerResource> targetClass) { super(context, targetClass); serviceContext = EclipseContextFactory.getServiceContext(Activator .getContext()); }
/** * @return a context that can be used to lookup OSGi services */ public static IEclipseContext getServiceContext() { return EclipseContextFactory.getServiceContext(Activator.getDefault().getContext()); }
Class<?> cl = b.loadClass(this.applicationClass); IEclipseContext eContext = EclipseContextFactory .getServiceContext(context); ContextInjectionFactory.setDefault(eContext); eContext.set(IApplicationContext.class, applicationContext);