Added Export-Service manifest header to the system bundle.
git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@379077 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/SystemBundle.java b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/SystemBundle.java
index aefdce5..deb331d 100644
--- a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/SystemBundle.java
+++ b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/SystemBundle.java
@@ -131,7 +131,12 @@
map.put(FelixConstants.BUNDLE_DESCRIPTION,
"This bundle is system specific; it implements various system services.");
map.put(FelixConstants.EXPORT_PACKAGE, exportSB.toString());
+ map.put(FelixConstants.EXPORT_SERVICE, "org.osgi.service.packageadmin.PackageAdmin,org.osgi.service.startlevel.StartLevel");
((SystemBundleArchive) getInfo().getArchive()).setManifestHeader(map);
+
+ // TODO: FRAMEWORK - We need some systematic way for framework services
+ // to add packages and services to the system bundle's headers, something
+ // that will allow for them to be independently configured.
}
public R4Export[] getExports()