The FrameworkWiring.findProviders method
is the way to discover capabilities of bundles in the framework, including
the osgi.identity capability which holds the bundles BSN and version.
Raymond Auge <raymond.auge@xxxxxxxxxxx> To:
mailing list <equinox-dev@xxxxxxxxxxx> Date:
12/13/2016 10:16 PM Subject:
What is the best way to get the version of a bundle Sent by:
Pascal, from which perspective would you like to get the
From the Bundle itself:
org.osgi.framework.Version version = org.osgi.framework.Bundle.getVersion();
Through the resolver API (arguably a little trickier):
There are a number of convenience APIs as well, but as
I said earlier it really depends from which perspective you are trying...
from a running framework or from some external agent analyzing a set of
Sincerely, - Ray
On Tue, Dec 13, 2016 at 9:45 PM, Pascal Rapicault <pascal@xxxxxxxxxxxxx>
wrote: With Platform.getBundle officially removed, and PackageAdmin
on its way out, could someone indicate the API of choice (and recommended
code snippet) to use to get the version of a given bundle?