1 package org.opendaylight.controller.sal.binding.api;
3 import org.osgi.framework.BundleActivator;
4 import org.osgi.framework.BundleContext;
5 import org.osgi.framework.ServiceReference;
7 public abstract class AbstractBindingAwareConsumer implements BindingAwareConsumer,BundleActivator {
10 public final void start(BundleContext context) throws Exception {
11 ServiceReference<BindingAwareBroker> brokerRef = context.getServiceReference(BindingAwareBroker.class);
12 BindingAwareBroker broker = context.getService(brokerRef);
13 broker.registerConsumer(this, context);
15 //context.ungetService(brokerRef);
19 protected void startImpl(BundleContext context) {
24 public final void stop(BundleContext context) throws Exception {
25 // TODO Auto-generated method stub