On 2/22/10 7:35 PM, Leon668 wrote:
On Mon, Feb 22, 2010 at 4:21 AM, Richard S. Hall<[email protected]>wrote:
On 2/22/10 5:21 PM, Mahammad Nasir wrote:
How can i call a method (in Activator class other than start,stop) in
container class of felix framework. Is service registration is the only
way??
You can't even call the start()/stop() methods in the activator, only the
framework can.
If you want to interact with your bundle, then services are the only
way...well, technically I guess you could use statics in its exported
classes, but this probably isn't a good idea in general.
Sorry to interrupt. But can you elaborate this:
"If you want to interact with your bundle, then services are the only
way."
What is the service here mean?
An OSGi service, published via BundleContext.registerService()...
If I want to invoke a bundle inside the other bundle. Is that possible?
What I am trying to build is a "bundle workflow", in which I'd try to
compose several bundle together and invoke them one by one.
No, that is not possible. You would need to compose services provided by
your bundles. You wouldn't want to compose bundles, because your
composition would be tied to the specific implementations. Using
services abstracts the implementation.
-> richard
Thanks.
Leo.
-> richard
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]