for (Bundle b : bundleContext.getBundles()) {
int state = b.getState();
}
dishmily wrote:
as every bundle uses Bundlescontext.registerService to register itself into
OSGI service, and the mothod "Servicechanged" for ServiceListener can only
get the infomation of the bundle, just when this bundle installed,stopped or
uninstalled. After bundle event has happened, the ServiceListener can never
get the status of bundles again. my question is:
if few bundles are actived and few bundles are resolved, is there some
methods to get the status of all these bundles? for example: Bundle_1,
Bundle_2 are actived and Bundle_3 is resolved. After i implemente the
method, i should get the result that Bundle_1,Bundle_2 and Bundle_3 are
installed and the Status of Bundle_1, Bundle_2 is actived, Status of
Bundle_3 is resolved.
thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]