@Services(provides = @ProvideService(PackageService.class))
public class Activator extends BaseActivator {
@Override
protected void doStart() throws Exception {
PackageService packageService = new PackageServiceImpl(bundleContext);
register(PackageService.class, packageService);
PackagesMBeanImpl mbean = new PackagesMBeanImpl(packageService);
registerMBean(mbean, "type=package");
}