]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - sandbox/argeo.slc.jemmytest/src/main/java/org/argeo/slc/jemmytest/JemmyTestActivator.java
Simplify projects
[gpl/argeo-slc.git] / sandbox / argeo.slc.jemmytest / src / main / java / org / argeo / slc / jemmytest / JemmyTestActivator.java
index f33855fbc32cec44c859989a39e0bd768e39a68c..ec1e56a7d1f1ab65fdb32b1ff470ce5c4ecd2c9f 100644 (file)
@@ -5,38 +5,21 @@ import java.util.Properties;
 import org.argeo.slc.autoui.AutoUiApplication;
 import org.osgi.framework.BundleActivator;
 import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceEvent;
-import org.osgi.framework.ServiceListener;
 
-public class JemmyTestActivator implements BundleActivator, ServiceListener {
+public class JemmyTestActivator implements BundleActivator {
 
        public void start(BundleContext context) throws Exception {
-               stdOut("JemmyTest started");
                Properties properties = new Properties();
                AutoUiApplicationJemmy applicationJemmy = new AutoUiApplicationJemmy();
                context.registerService(AutoUiApplication.class.getName(),
                                applicationJemmy, properties);
-               context.registerService(Runnable.class.getName(), applicationJemmy,
-                               properties);
-
-//             ServiceReference ref = context
-//                             .getServiceReference("org.argeo.slc.autoui.AutoUiApplication");
-//             Object service = context.getService(ref);
-//             // JemmyTestActivator.stdOut("service=" + service.getClass());
-//             AutoUiApplication app = (AutoUiApplication) service;
-//             app.execute(null);
-
+               stdOut("JemmyTest started");
        }
 
        public void stop(BundleContext context) throws Exception {
                stdOut("JemmyTest stopped");
        }
 
-       public void serviceChanged(ServiceEvent serviceEvent) {
-               stdOut("serviceEvent=" + serviceEvent);
-
-       }
-
        public static void stdOut(Object obj) {
                System.out.println(obj);
        }