[jboss-dev-forums] [Design of OSGi Integration] - Re: Runtime and bundle lifecycle/dependency resolution
alesj
do-not-reply at jboss.com
Mon Mar 2 05:01:47 EST 2009
When Bundle is put to resolved state is not defined by the spec.
e.g. Felix does it like this
anonymous wrote :
| [20:36:06] Ales Justin says: Bundle A depends on Bundle B
| [20:36:06] Ales Justin says: I 1st deploy A
| [20:36:26] Ales Justin says: so, Bundle a = bundleContext.installBundle(urlA);
| [20:36:32] Ales Justin says: its state is INSTALLED
| [20:36:39] Ales Justin says: I install B
| [20:36:48] Ales Justin says: is A's state then resolved?
| [20:37:05] Richard S Hall says: It is up to the framework, but for Felix, no.
| [20:37:34] Richard S Hall says: The framework can decide to resolve at any time it wants.
| [20:37:49] Richard S Hall says: For Felix, we wait for a start or an explicit resolve via PackageAdmin.
|
So, I think we should try to make usage of impl details,
exposed over our spi - if possible.
In the worst case, use PackageAdmin - which is extension to core api.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214111#4214111
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214111
More information about the jboss-dev-forums
mailing list