On Fri, Nov 4, 2016 at 8:41 AM, Thomas Watson <[email protected]> wrote: > 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.
That does what I need. Thanks. > > 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 <[email protected]> > To: OSGi Developer Mail List <[email protected]> > Date: 11/04/2016 07:03 AM > Subject: [osgi-dev] Getting _all_ of the framework properties > Sent by: [email protected] > ________________________________ > > > > 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 > [email protected] > https://mail.osgi.org/mailman/listinfo/osgi-dev > > > > > > _______________________________________________ > OSGi Developer Mail List > [email protected] > https://mail.osgi.org/mailman/listinfo/osgi-dev _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
