In an OSGi R6 Framework the  osgi.native namespace [1] should be populated 
with the framework launching properties:

BundleRevision system =
 
bundleContext.getBundle(Constants.SYSTEM_BUNDLE_LOCATION).adapt(BundleRevision.class);

Map<String, Object> launchingProps = 
 
system.getDeclaredCapabilities(NativeNamespace.NATIVE_NAMESPACE).get(0).getAttributes();


This only contains the values from the launching map used to launch the 
framework [2] plus the osgi.native.* props set for the osgi.native 
namespace.  This may not include all the props that are automatically set 
by the framework though and it will not include the values of the system 
properties which back the values of BundleContext.getProperty.

Tom

[1] 
https://osgi.org/javadoc/r6/core/org/osgi/framework/namespace/NativeNamespace.html
[2] 
https://osgi.org/javadoc/r6/core/org/osgi/framework/launch/FrameworkFactory.html#newFramework(java.util.Map)





From:   Benson Margulies <bimargul...@gmail.com>
To:     OSGi Developer Mail List <osgi-dev@mail.osgi.org>
Date:   11/04/2016 07:03 AM
Subject:        [osgi-dev] Getting _all_ of the framework properties
Sent by:        osgi-dev-boun...@mail.osgi.org



Is there a service that has access to the enumeration of all the
framework property keys? BundleContext.getProperty can only get the
ones I know about, of course.
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev





_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to