Requesting to be started bundle list to virgo [message #1691994] |
Sat, 11 April 2015 12:44  |
Eclipse User |
|
|
|
Hello all,
I would like to know if there is a way to request the bundle list which will be started in the virgo startup phase in real time.
For example I've bundle a,b,c,d. After a is started, a wants to know which bundle will be started after it (so b,c,d at first call and then c,d and then nothing).
Is that possible ?
Thank you
|
|
|
|
|
|
|
Re: Requesting to be started bundle list to virgo [message #1693000 is a reply to message #1692990] |
Tue, 21 April 2015 03:43  |
Eclipse User |
|
|
|
Mathilde,
I don't know Hibernate enough nor the github project you linked to give you advice about how to use Hibernate for your needs.
However, based on your comments regarding bundle A,B,C and I think you can solve this with a SynchronousBundleListener or a BundleTracker.
You could have a custom MANIFEST header, say "Extend-Domain:" and declare it in the MANIFEST.MF of B and C. You can than use a bundle listener or bundle tracker that is called by the framework OSGi every time a bundle is started. When invoked, the bundle tracker checks the bundle headers for the presence of the "Extend-Domain" header and if found acts accordingly:
String value = aBundle.getHeaders().get("Extend-Domain")
This is indeed what is normally referred to as the OSGi Extender pattern. http://toedter.com/2010/07/05/osgi-4-2-extender-pattern-and-bundletracker/
|
|
|
Powered by
FUDForum. Page generated in 0.04623 seconds