You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by aw...@apache.org on 2010/03/14 17:46:39 UTC

svn commit: r922890 - /incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/framework/Framework.java

Author: awojtuniak
Date: Sun Mar 14 16:46:39 2010
New Revision: 922890

URL: http://svn.apache.org/viewvc?rev=922890&view=rev
Log:
ARIES-177

Modified:
    incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/framework/Framework.java

Modified: incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/framework/Framework.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/framework/Framework.java?rev=922890&r1=922889&r2=922890&view=diff
==============================================================================
--- incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/framework/Framework.java (original)
+++ incubator/aries/trunk/jmx/jmx-core/src/main/java/org/apache/aries/jmx/framework/Framework.java Sun Mar 14 16:46:39 2010
@@ -184,7 +184,7 @@ public class Framework implements Framew
           bundles = new Bundle[bundleIdentifiers.length];
           for (int i = 0; i < bundleIdentifiers.length; i++) 
           {
-             bundles[i] = context.getBundle(bundleIdentifiers[i]);
+              bundles[i] = FrameworkUtils.resolveBundle(context, bundleIdentifiers[i]); 
           }
        }
        packageAdmin.refreshPackages(bundles);
@@ -208,7 +208,7 @@ public class Framework implements Framew
           bundles = new Bundle[bundleIdentifiers.length];
           for (int i = 0; i < bundleIdentifiers.length; i++) 
           {
-             bundles[i] = context.getBundle(bundleIdentifiers[i]);
+              bundles[i] = FrameworkUtils.resolveBundle(context, bundleIdentifiers[i]); 
           }
        }
        return packageAdmin.resolveBundles(bundles);
@@ -218,7 +218,7 @@ public class Framework implements Framew
      * @see org.osgi.jmx.framework.FrameworkMBean#restartFramework()
      */
     public void restartFramework() throws IOException {
-        Bundle bundle = context.getBundle(0);
+        Bundle bundle = FrameworkUtils.resolveBundle(context, 0);
         try {
             bundle.update();
         } catch (BundleException be) {
@@ -277,7 +277,7 @@ public class Framework implements Framew
      * @see org.osgi.jmx.framework.FrameworkMBean#shutdownFramework()
      */
     public void shutdownFramework() throws IOException {
-        Bundle bundle = context.getBundle(0);
+        Bundle bundle = FrameworkUtils.resolveBundle(context, 0);
         try {
             bundle.stop();
         } catch (BundleException be) {