Fix a wrong notification in ComponentActivatorAbstractBase 40/640/1
authorGiovanni Meo <gmeo@cisco.com>
Wed, 24 Jul 2013 11:04:46 +0000 (13:04 +0200)
committerGiovanni Meo <gmeo@cisco.com>
Wed, 24 Jul 2013 11:04:46 +0000 (13:04 +0200)
The ComponentActivatorAbstractBase is currently looking for the
"stopping" method on the component that is stopping, during the
"stopped" phase provided by Apache Dependency Manager, while that
should be raised during the "stopping" phase. Correcting the
mis-alignment.

Change-Id: I1ff703ce071e2f5c80215b748b4f046760445b21
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/ComponentActivatorAbstractBase.java

index 66882af5d3098d95b97fb7eee530ce57d834974c..de77837c34a1472249b7fe69cd9ac64d10ba129a 100644 (file)
@@ -152,6 +152,11 @@ abstract public class ComponentActivatorAbstractBase implements
 
         @Override
         public void stopped(Component component) {
+            // do nothing
+        }
+
+        @Override
+        public void stopping(Component component) {
             if (component == null) {
                 return;
             }
@@ -160,11 +165,6 @@ abstract public class ComponentActivatorAbstractBase implements
                     { Component.class }, {} }, new Object[][] { { component },
                     {} });
         }
-
-        @Override
-        public void stopping(Component component) {
-            // do nothing
-        }
     }
 
     /**