]> git.argeo.org Git - gpl/argeo-slc.git/blob - sandbox/argeo.slc.jemmytest/src/main/java/org/argeo/slc/jemmytest/JemmyTestActivator.java
(non fonctionning) OSGi tests
[gpl/argeo-slc.git] / sandbox / argeo.slc.jemmytest / src / main / java / org / argeo / slc / jemmytest / JemmyTestActivator.java
1 package org.argeo.slc.jemmytest;
2
3 import org.osgi.framework.BundleActivator;
4 import org.osgi.framework.BundleContext;
5 import org.osgi.framework.ServiceEvent;
6 import org.osgi.framework.ServiceListener;
7
8 public class JemmyTestActivator implements BundleActivator, ServiceListener {
9
10 public void start(BundleContext context) throws Exception {
11 stdOut("JemmyTest started");
12
13 // ServiceReference ref = context
14 // .getServiceReference("org.argeo.slc.autoui.AutoUiApplication");
15 // Object service = context.getService(ref);
16 // // JemmyTestActivator.stdOut("service=" + service.getClass());
17 // AutoUiApplication app = (AutoUiApplication) service;
18 // app.execute(null);
19
20 }
21
22 public void stop(BundleContext context) throws Exception {
23 stdOut("JemmyTest stopped");
24 }
25
26 public void serviceChanged(ServiceEvent serviceEvent) {
27 stdOut("serviceEvent=" + serviceEvent);
28
29 }
30
31 public static void stdOut(Object obj) {
32 System.out.println(obj);
33 }
34
35 }