review this change
Change-Id: I4c6e16dcc3fe08ff44f2ad225238391165b1fcd9
Signed-off-by: Natarajan P<natp@cisco.com>
BundleActivator, IContainerAware {
Logger logger = LoggerFactory
.getLogger(ComponentActivatorAbstractBase.class);
BundleActivator, IContainerAware {
Logger logger = LoggerFactory
.getLogger(ComponentActivatorAbstractBase.class);
- private ServiceRegistration containerAwareRegistration;
private DependencyManager dm;
private ConcurrentMap<ImmutablePair<String, Object>, Component> dbInstances = (ConcurrentMap<ImmutablePair<String, Object>, Component>) new ConcurrentHashMap<ImmutablePair<String, Object>, Component>();
private ConcurrentMap<Object, Component> dbGlobalInstances = (ConcurrentMap<Object, Component>) new ConcurrentHashMap<Object, Component>();
private DependencyManager dm;
private ConcurrentMap<ImmutablePair<String, Object>, Component> dbInstances = (ConcurrentMap<ImmutablePair<String, Object>, Component>) new ConcurrentHashMap<ImmutablePair<String, Object>, Component>();
private ConcurrentMap<Object, Component> dbGlobalInstances = (ConcurrentMap<Object, Component>) new ConcurrentHashMap<Object, Component>();
// Register with OSGi the provider for the service IContainerAware
// Register with OSGi the provider for the service IContainerAware
- this.containerAwareRegistration = context.registerService(
+ context.registerService(
IContainerAware.class.getName(), this, null);
// Now call the derived class init function
IContainerAware.class.getName(), this, null);
// Now call the derived class init function