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 2015/05/05 15:43:59 UTC
karaf-cellar git commit: [KARAF-3717] CellarBundleMBean now uses the
bundle symbolicname in the install() operation
Repository: karaf-cellar
Updated Branches:
refs/heads/master 387529761 -> 2a2c81fad
[KARAF-3717] CellarBundleMBean now uses the bundle symbolicname in the install() operation
Project: http://git-wip-us.apache.org/repos/asf/karaf-cellar/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf-cellar/commit/2a2c81fa
Tree: http://git-wip-us.apache.org/repos/asf/karaf-cellar/tree/2a2c81fa
Diff: http://git-wip-us.apache.org/repos/asf/karaf-cellar/diff/2a2c81fa
Branch: refs/heads/master
Commit: 2a2c81fad95a567d749095fcb5ade6ef6f8ce3e7
Parents: 3875297
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Tue May 5 15:43:19 2015 +0200
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Tue May 5 15:43:19 2015 +0200
----------------------------------------------------------------------
.../bundle/management/internal/CellarBundleMBeanImpl.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/karaf-cellar/blob/2a2c81fa/bundle/src/main/java/org/apache/karaf/cellar/bundle/management/internal/CellarBundleMBeanImpl.java
----------------------------------------------------------------------
diff --git a/bundle/src/main/java/org/apache/karaf/cellar/bundle/management/internal/CellarBundleMBeanImpl.java b/bundle/src/main/java/org/apache/karaf/cellar/bundle/management/internal/CellarBundleMBeanImpl.java
index 3c2d9fe..74ecfda 100644
--- a/bundle/src/main/java/org/apache/karaf/cellar/bundle/management/internal/CellarBundleMBeanImpl.java
+++ b/bundle/src/main/java/org/apache/karaf/cellar/bundle/management/internal/CellarBundleMBeanImpl.java
@@ -153,7 +153,7 @@ public class CellarBundleMBeanImpl extends StandardMBean implements CellarBundle
} else {
state.setStatus(BundleEvent.INSTALLED);
}
- clusterBundles.put(name + "/" + version, state);
+ clusterBundles.put(symbolicName + "/" + version, state);
} finally {
Thread.currentThread().setContextClassLoader(originalClassLoader);
}
@@ -161,12 +161,11 @@ public class CellarBundleMBeanImpl extends StandardMBean implements CellarBundle
// broadcast the event
ClusterBundleEvent event = new ClusterBundleEvent(name, version, location, BundleEvent.INSTALLED);
event.setSourceGroup(group);
- eventProducer.produce(event);
if (start) {
event = new ClusterBundleEvent(name, version, location, BundleEvent.STARTED);
event.setSourceGroup(group);
- eventProducer.produce(event);
}
+ eventProducer.produce(event);
}
@Override