use of org.apache.aries.subsystem.scope.impl.ScopeManager in project aries by apache.
the class Activator method start.
@SuppressWarnings("unchecked")
public void start(BundleContext bundleContext) throws Exception {
Activator.bundleContext = bundleContext;
scopeManager = new ScopeManager(bundleContext);
scopeManagerReg = bundleContext.registerService(new String[] { EventHook.class.getName(), EventListenerHook.class.getName(), org.osgi.framework.hooks.bundle.FindHook.class.getName(), org.osgi.framework.hooks.service.FindHook.class.getName(), ResolverHookFactory.class.getName() }, scopeManager, null);
scopeFactoryReg = (ServiceRegistration<Scope>) bundleContext.registerService(Scope.class.getName(), this, null);
}
Aggregations