blob: e519c65b3ccad338868f26c9650da778534e133e [file] [log] [blame]
Marcel Offermansb20ea202008-09-18 21:18:03 +00001package org.apache.felix.dependencymanager.shell;
2
3import org.apache.felix.shell.Command;
4import org.osgi.framework.BundleActivator;
5import org.osgi.framework.BundleContext;
6import org.osgi.framework.ServiceRegistration;
7
8public class Activator implements BundleActivator {
9 private ServiceRegistration m_serviceRegistration;
10
11 public void start(BundleContext context) throws Exception {
12 m_serviceRegistration = context.registerService(Command.class.getName(), new DMCommand(context), null);
13 }
14
15 public void stop(BundleContext context) throws Exception {
16 m_serviceRegistration.unregister();
17 }
18}