On 10/13/09 18:41, Pruitt, Byron S wrote:
I am developing a stand-alone bundle that produces various configuration
reports on bundles contained in my application. Going through the Bundle and
BundleContext api I get most of what I want. There are two things I can't find
a way to access.
1) The Bundle components that are not a service. There is no ServiceReference
for them.
It is not clear what you mean here. There is no such thing as bundle
components that are not services. Only services registered by bundles
are tracked by OSGi and can be accessed by other bundles. There is no
other "component" concept in OSGi, other than the Bundle object itself.
This is different if you are using something like iPOJO, which has a
component concept.
2), For a given ServiceReference, I can't list any services it references.
In OSGi services do not really use services, bundles do. So, you can
only find out which services a bundle uses.
As another counterpoint, in iPOJO there is a concept of service
contract-level dependencies, which specify which services a service uses.
-> richard
Does anyone know an easy to get to these things? It's not obvious to me.
Thanks in advance,
-Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]