1 package org
.argeo
.slc
.jemmytest
;
3 import org
.osgi
.framework
.BundleActivator
;
4 import org
.osgi
.framework
.BundleContext
;
5 import org
.osgi
.framework
.ServiceEvent
;
6 import org
.osgi
.framework
.ServiceListener
;
8 public class JemmyTestActivator
implements BundleActivator
, ServiceListener
{
10 public void start(BundleContext context
) throws Exception
{
11 stdOut("JemmyTest started");
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;
22 public void stop(BundleContext context
) throws Exception
{
23 stdOut("JemmyTest stopped");
26 public void serviceChanged(ServiceEvent serviceEvent
) {
27 stdOut("serviceEvent=" + serviceEvent
);
31 public static void stdOut(Object obj
) {
32 System
.out
.println(obj
);