Added listener for rpc registrations.
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / sal / core / api / AbstractProvider.java
index c25b2f9cadcd3186cc36e7611736f80fa8e96f09..621ef92132a636aabc347e87b69f6b8ac89c3c8f 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
 package org.opendaylight.controller.sal.core.api;
 
 import java.util.Collection;
@@ -28,12 +35,16 @@ public abstract class AbstractProvider implements BundleActivator, Provider {
         broker.registerProvider(this,context);
     }
 
-    public abstract void startImpl(BundleContext context);
+    protected void startImpl(BundleContext context) {
+        // NOOP
+    }
+    protected void stopImpl(BundleContext context) {
+        // NOOP
+    }
 
     @Override
     public final void stop(BundleContext context) throws Exception {
-        // TODO Auto-generated method stub
-
+        stopImpl(context);
     }
 
 }