You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2013/12/18 13:30:38 UTC

[47/50] git commit: [KARAF-2340] Cellar LocalBundleListener now ignores the local bundle event coming from the framework (bundle ID 0)

[KARAF-2340] Cellar LocalBundleListener now ignores the local bundle event coming from the framework (bundle ID 0)

git-svn-id: https://svn.apache.org/repos/asf/karaf/cellar/branches/cellar-2.2.x@1490172 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/karaf-cellar/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf-cellar/commit/33637b80
Tree: http://git-wip-us.apache.org/repos/asf/karaf-cellar/tree/33637b80
Diff: http://git-wip-us.apache.org/repos/asf/karaf-cellar/diff/33637b80

Branch: refs/heads/cellar-2.2.x
Commit: 33637b80ddd3c2ef345ac297f265ad3d5fb4979e
Parents: c5b26b8
Author: jbonofre <jb...@13f79535-47bb-0310-9956-ffa450edef68>
Authored: Thu Jun 6 06:48:41 2013 +0000
Committer: jbonofre <jb...@13f79535-47bb-0310-9956-ffa450edef68>
Committed: Thu Jun 6 06:48:41 2013 +0000

----------------------------------------------------------------------
 .../java/org/apache/karaf/cellar/bundle/LocalBundleListener.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf-cellar/blob/33637b80/bundle/src/main/java/org/apache/karaf/cellar/bundle/LocalBundleListener.java
----------------------------------------------------------------------
diff --git a/bundle/src/main/java/org/apache/karaf/cellar/bundle/LocalBundleListener.java b/bundle/src/main/java/org/apache/karaf/cellar/bundle/LocalBundleListener.java
index bdae0ad..b851e58 100644
--- a/bundle/src/main/java/org/apache/karaf/cellar/bundle/LocalBundleListener.java
+++ b/bundle/src/main/java/org/apache/karaf/cellar/bundle/LocalBundleListener.java
@@ -49,6 +49,10 @@ public class LocalBundleListener extends BundleSupport implements SynchronousBun
             return;
         }
 
+        if (event.getBundle().getBundleId() == 0) {
+            return;
+        }
+
         // check if the producer is ON
         if (eventProducer.getSwitch().getStatus().equals(SwitchStatus.OFF)) {
             LOGGER.warn("CELLAR BUNDLE: cluster event producer is OFF");