[jboss-osgi-commits] JBoss-OSGI SVN: r97504 - projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/bundle.
jboss-osgi-commits at lists.jboss.org
jboss-osgi-commits at lists.jboss.org
Mon Dec 7 08:06:23 EST 2009
Author: alesj
Date: 2009-12-07 08:06:23 -0500 (Mon, 07 Dec 2009)
New Revision: 97504
Modified:
projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/bundle/AbstractBundleState.java
Log:
Move manager usage outside loop.
Modified: projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/bundle/AbstractBundleState.java
===================================================================
--- projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/bundle/AbstractBundleState.java 2009-12-07 13:04:16 UTC (rev 97503)
+++ projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/bundle/AbstractBundleState.java 2009-12-07 13:06:23 UTC (rev 97504)
@@ -363,10 +363,11 @@
if (contexts == null || contexts.isEmpty())
return null;
+ OSGiBundleManager manager = getBundleManager();
List<ServiceReference> references = new ArrayList<ServiceReference>();
for (ControllerContext context : contexts)
{
- ServiceReference ref = getBundleManager().getServiceReferenceForContext(context);
+ ServiceReference ref = manager.getServiceReferenceForContext(context);
if (ref != null)
references.add(ref);
}
More information about the jboss-osgi-commits
mailing list