Marcel Offermans | b20ea20 | 2008-09-18 21:18:03 +0000 | [diff] [blame] | 1 | package org.apache.felix.dependencymanager.shell; |
| 2 | |
| 3 | import org.apache.felix.shell.Command; |
| 4 | import org.osgi.framework.BundleActivator; |
| 5 | import org.osgi.framework.BundleContext; |
| 6 | import org.osgi.framework.ServiceRegistration; |
| 7 | |
| 8 | public 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 | } |