]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - sandbox/argeo.slc.jemmytest/src/main/java/org/argeo/slc/jemmytest/JemmyTestActivator.java
Start introducing the interfaces
[gpl/argeo-slc.git] / sandbox / argeo.slc.jemmytest / src / main / java / org / argeo / slc / jemmytest / JemmyTestActivator.java
index ec1e56a7d1f1ab65fdb32b1ff470ce5c4ecd2c9f..a67dc5ab2a82e7ebf730addeba8e40c937723697 100644 (file)
@@ -2,21 +2,20 @@ package org.argeo.slc.jemmytest;
 
 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");
        }