[jboss-osgi-commits] JBoss-OSGI SVN: r100151 - projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/resolver/internal/basic.
jboss-osgi-commits at lists.jboss.org
jboss-osgi-commits at lists.jboss.org
Fri Jan 29 19:17:14 EST 2010
Author: thomas.diesler at jboss.com
Date: 2010-01-29 19:17:13 -0500 (Fri, 29 Jan 2010)
New Revision: 100151
Modified:
projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/resolver/internal/basic/BasicResolverImpl.java
Log:
Ignore the system bundle and fragments
Modified: projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/resolver/internal/basic/BasicResolverImpl.java
===================================================================
--- projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/resolver/internal/basic/BasicResolverImpl.java 2010-01-30 00:04:38 UTC (rev 100150)
+++ projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/resolver/internal/basic/BasicResolverImpl.java 2010-01-30 00:17:13 UTC (rev 100151)
@@ -36,6 +36,7 @@
import org.jboss.classloading.spi.version.VersionRange;
import org.jboss.deployers.structure.spi.DeploymentUnit;
import org.jboss.logging.Logger;
+import org.jboss.osgi.framework.bundle.AbstractBundleState;
import org.jboss.osgi.framework.bundle.AbstractDeployedBundleState;
import org.jboss.osgi.framework.bundle.OSGiBundleManager;
import org.jboss.osgi.framework.bundle.OSGiBundleState;
@@ -70,8 +71,9 @@
@Override
public ResolverBundle addBundle(Bundle bundle)
{
- // Ignore the system bundle
- if (bundle.getBundleId() == 0)
+ // Ignore the system bundle and fragments
+ AbstractBundleState bundleState = AbstractBundleState.assertBundleState(bundle);
+ if (bundleState instanceof OSGiBundleState == false)
return null;
return super.addBundle(bundle);
More information about the jboss-osgi-commits
mailing list