<artifactId>org.apache.felix.main</artifactId>
</dependency>
<!-- Spring -->
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-core</artifactId>
- <version>2.0.8</version>
- </dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>2.0.8</version>
</dependency>
+
<dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-beans</artifactId>
- <version>2.0.8</version>
+ <groupId>xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
</dependency>
-
- <dependency>
- <groupId>xerces</groupId>
- <artifactId>xercesImpl</artifactId>
- </dependency>
</dependencies>
</project>
\ No newline at end of file
import org.apache.felix.framework.cache.BundleCache;
import org.apache.felix.main.AutoActivator;
import org.argeo.slc.autoui.AutoUiActivator;
-import org.argeo.slc.autoui.AutoUiApplication;
+import org.argeo.slc.autoui.DetachedStep;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
try {
// Load properties
Properties config = prepareConfig();
-
+
// Start UI (in main class loader)
startUi(config);
// mainArgs[0] = Class.forName("[Ljava.lang.String;");
Method mainMethod = clss.getMethod("main", mainArgsClasses);
mainMethod.invoke(null, mainArgs);
-
- // ClassReference classReference = new ClassReference(className);
- // classReference.startApplication(uiArgs);
}
protected static void automateUi(BundleContext bundleContext)
throws Exception {
// Retrieve service and execute it
ServiceReference ref = bundleContext
- .getServiceReference("org.argeo.slc.autoui.AutoUiApplication");
+ .getServiceReference("org.argeo.slc.autoui.DetachedStep");
Object service = bundleContext.getService(ref);
- // Object service = applicationContext.getBean("jemmyTest");
AutoUiActivator.stdOut("service.class=" + service.getClass());
- AutoUiApplication app = (AutoUiApplication) service;
- app.execute(null);
+ DetachedStep app = (DetachedStep) service;
+ app.execute(null, null);
}
/* UTILITIES */