1 package org
.argeo
.slc
.autoui
;
3 import java
.util
.Properties
;
5 import org
.apache
.commons
.logging
.Log
;
6 import org
.apache
.commons
.logging
.LogFactory
;
7 import org
.argeo
.slc
.autoui
.internal
.DetachedExecutionServerImpl
;
8 import org
.osgi
.framework
.BundleContext
;
10 public class AutoUiActivator
extends AbstractDetachedActivator
{
11 private final Log log
= LogFactory
.getLog(getClass());
13 private DetachedExecutionServerImpl executionServer
;
15 public void startAutoBundle(BundleContext context
) throws Exception
{
16 Object obj
= getStaticRefProvider().getStaticRef("executionServer");
18 executionServer
= (DetachedExecutionServerImpl
) obj
;
20 throw new DetachedException("Could not find execution server.");
22 executionServer
.setBundleContext(context
);
24 context
.registerService(DetachedExecutionServer
.class.getName(),
25 executionServer
, new Properties());
26 log
.info("AutoUi started");
29 public void stopAutoBundle(BundleContext context
) throws Exception
{
30 log
.info("AutoUi stopped");