1 package org
.argeo
.slc
.detached
;
3 import java
.util
.Properties
;
5 import org
.osgi
.framework
.BundleContext
;
7 public class Activator
extends AbstractDetachedActivator
{
8 private DetachedExecutionServerImpl executionServer
;
10 protected void startAutoBundle(BundleContext context
) throws Exception
{
11 Object obj
= getStaticRefProvider().getStaticRef("executionServer");
13 executionServer
= (DetachedExecutionServerImpl
) obj
;
15 throw new DetachedException("Could not find execution server.");
17 executionServer
.init(context
);
19 context
.registerService(DetachedExecutionServer
.class.getName(),
20 executionServer
, new Properties());
23 protected void stopAutoBundle(BundleContext context
) throws Exception
{
24 // TODO Auto-generated method stub
25 super.stopAutoBundle(context
);