Hello,
Concerning this mail, I looked in the OSGi 4.2 core spec and found the
following interfaces:
"Getting Bundle Information
The BundleContext interface defines methods to retrieve information
about
bundles installed in the OSGi Service Platform:
* getBundle() - Returns the single Bundle object associated
with the
BundleContext object.
* getBundles() - Returns an array of the bundles currently
installed in the
Framework.
* getBundle(long) - Returns the Bundle object specified by the
unique
identifier, or null if no matching bundle is found."
In the current Celix implementation the following functions are
provided:
bundleContext_getBundle(..)
bundleContext_getBundles(..)
bundleContext_getBundleById( ...)
The getBundleById function has a slightly modified name, probably
because function overloading is not supported in C.
This means that the question is answered.
Gr. Frank Mulder
-----Original Message-----
From: MULDER Frank Willem [mailto:[email protected]]
Sent: Monday, 05 September, 2011 09:06
To: celix-mailing-list ([email protected])
Subject: FW: get a specific bundle of a context
From: MULDER Frank Willem
Sent: Thursday, 01 September, 2011 16:04
To: celix-mailing-list ([email protected])
Subject: FW: get a specific bundle of a context
From: MULDER Frank Willem
Sent: Thursday, 01 September, 2011 16:01
To: celix-mailing-list ([email protected])
Subject: get a specific bundle of a context
Hello,
In the Felix implementation of OSGi, one can find a bundle with
a specific number:
BundleContext m_context; ...
m_context.getBundle("1");
In the Celix implementation we have a similar function:
bundleContext_getBundle(m_context, &bundle)
Questions are:
1) Does the OSGi spec allow multiple bundles per bundle context?
2) If so, is this correctly implemented in celix?
Thanks: Frank Mulder
------------------------------------------------------------------------------------------------------------
Disclaimer:
If you are not the intended recipient of this email, please notify the sender
and delete it.
Any unauthorized copying, disclosure or distribution of this email or its
attachment(s) is forbidden.
Thales Nederland BV will not accept liability for any damage caused by this
email or its attachment(s).
Thales Nederland BV is seated in Hengelo and is registered at the Chamber of
Commerce under number 06061578.
------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
Disclaimer:
If you are not the intended recipient of this email, please notify the sender
and delete it.
Any unauthorized copying, disclosure or distribution of this email or its
attachment(s) is forbidden.
Thales Nederland BV will not accept liability for any damage caused by this
email or its attachment(s).
Thales Nederland BV is seated in Hengelo and is registered at the Chamber of
Commerce under number 06061578.
------------------------------------------------------------------------------------------------------------