[jboss-cvs] JBossAS SVN: r97258 - projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 1 15:55:46 EST 2009
Author: alesj
Date: 2009-12-01 15:55:46 -0500 (Tue, 01 Dec 2009)
New Revision: 97258
Modified:
projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java
Log:
Check only installed.
Modified: projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java
===================================================================
--- projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java 2009-12-01 20:17:59 UTC (rev 97257)
+++ projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java 2009-12-01 20:55:46 UTC (rev 97258)
@@ -1249,9 +1249,9 @@
{
Class<?> type = loadClass(bundle, clazz);
if (type == null)
- return null;
+ return null; // or check all?
- contexts = controller.getInstantiatedContexts(type);
+ contexts = controller.getContexts(type, ControllerState.INSTALLED);
}
else
{
@@ -1269,6 +1269,7 @@
Collection<ServiceReference> result = new ArrayList<ServiceReference>();
for (ControllerContext context : sorted)
{
+ // re-check?? -- we already only get INSTALLED
if (isUnregistered(context) == false)
{
ServiceReference ref = getServiceReferenceForContext(context);
More information about the jboss-cvs-commits
mailing list