[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Framework.start() - synchronous?

Ben, be aware that just because bundles are in state=started services are not necessarily already exposed/available or even remain available all the time.

Not sure if i got your question wrong but make sure you see Bundle Layer and Service Layer as totally different things. For service interaction, prefer an event based mechanism and higher level dependency injection frameworks ( Declarative Services,Peaberry, Blueprint,Felix DM e.g.).


On Tue, Jan 11, 2011 at 5:08 PM, Ben Cox <ben_cox_21@xxxxxxxxxxx> wrote:
Hi All,

I'm starting Equinox through the launching API - I get a Framework from a FrameworkFactory, do Framework.init(), do some install()s and start()s of my bundles and then do Framework.start(). I then proceed to do a bit of interaction with the framework from the launching code once Framework.start() has completed. However, I'm not entirely sure if Framework.start() is synchronous - i.e. if I'm getting services that are registered in my bundles' Activators, will they definitely be registered by the time Framework.start() has completed?

Sorry if this is written loud and clear somewhere in the specification, but I have trawled it! :D

Many thanks,

equinox-dev mailing list

Toni Menzel || http://okidokiteam.com