- public void start(BundleContext context) throws Exception {
- stdOut("AutoUi started");
- Properties properties = new Properties();
- AutoUiApplicationJemmy applicationJemmy = new AutoUiApplicationJemmy();
- context.registerService(AutoUiApplication.class.getName(),
- applicationJemmy, properties);
- context.registerService(Runnable.class.getName(), applicationJemmy,
- properties);
- }
+ private DetachedExecutionServerImpl executionServer;
+
+ public void startAutoBundle(BundleContext context) throws Exception {
+ Object obj = getStaticRefProvider().getStaticRef("executionServer");
+ if (obj != null)
+ executionServer = (DetachedExecutionServerImpl) obj;
+ else
+ throw new DetachedException("Could not find execution server.");
+
+ executionServer.init(context);