X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.osgi.boot%2Fsrc%2Forg%2Fargeo%2Fosgi%2Fboot%2Fa2%2FOsgiContext.java;h=b4f101887d248075773f5f6cf8fa8dc67c449254;hb=c155192cfcd5ca355eb933fa3f55dbad6d01b958;hp=948cbe26a279b0819f06aa0b9ffb7596a0fe49d2;hpb=7e77ed8fc812ea81d5cecec67006fbe363150ef8;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.osgi.boot/src/org/argeo/osgi/boot/a2/OsgiContext.java b/org.argeo.osgi.boot/src/org/argeo/osgi/boot/a2/OsgiContext.java index 948cbe26a..b4f101887 100644 --- a/org.argeo.osgi.boot/src/org/argeo/osgi/boot/a2/OsgiContext.java +++ b/org.argeo.osgi.boot/src/org/argeo/osgi/boot/a2/OsgiContext.java @@ -6,8 +6,8 @@ import org.osgi.framework.BundleContext; import org.osgi.framework.FrameworkUtil; import org.osgi.framework.Version; -/** A running OSGi bundle context seen as a {@link ProvisioningSource}. */ -class OsgiContext extends ProvisioningSource { +/** A running OSGi bundle context seen as a {@link AbstractProvisioningSource}. */ +class OsgiContext extends AbstractProvisioningSource { private final BundleContext bc; public OsgiContext(BundleContext bc) { @@ -24,7 +24,7 @@ class OsgiContext extends ProvisioningSource { } void load() { - A2Contribution runtimeContribution = new A2Contribution(this, A2Contribution.RUNTIME); + A2Contribution runtimeContribution = getOrAddContribution( A2Contribution.RUNTIME); for (Bundle bundle : bc.getBundles()) { // OsgiBootUtils.debug(bundle.getDataFile("/")); String componentId = bundle.getSymbolicName();