import java.util.Properties;
-import org.argeo.slc.autoui.AutoUiApplication;
-import org.osgi.framework.BundleActivator;
+import org.argeo.slc.autoui.AbstractDetachedActivator;
+import org.argeo.slc.autoui.DetachedStep;
import org.osgi.framework.BundleContext;
-public class JemmyTestActivator implements BundleActivator {
-
- public void start(BundleContext context) throws Exception {
+public class JemmyTestActivator extends AbstractDetachedActivator {
+ protected void startAutoBundle(BundleContext context) throws Exception {
Properties properties = new Properties();
- AutoUiApplicationJemmy applicationJemmy = new AutoUiApplicationJemmy();
- context.registerService(AutoUiApplication.class.getName(),
+ DummyStep applicationJemmy = (DummyStep) getStaticRef("jemmyTest");
+ context.registerService(DetachedStep.class.getName(),
applicationJemmy, properties);
stdOut("JemmyTest started");
}
- public void stop(BundleContext context) throws Exception {
+ public void stopAutoBundle(BundleContext context) throws Exception {
stdOut("JemmyTest stopped");
}