[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [equinox-dev] Calling Equinox close command by code
- From: "David Conde" <dconde@xxxxxxxx>
- Date: Thu, 29 Apr 2010 13:16:54 +0200
- Delivered-to: email@example.com
- Thread-index: Acrm7T7gNTOz9l2mQqGu6SbrPS+HZQAn9j2Q
For me it is not enough to call context.getBundle(0).stop() since this does something similar to "shutdown" command (shutdown the OSGi Framework) and I need something similar to "close" command (shutdown and exit). How could I achieve it?
If I do context.getBundle(0).stop() my application does not stop and some bundles continue running, as the same way as if I would type shutdown command in the command line.
Thank you in advance
De: equinox-dev-bounces@xxxxxxxxxxx [mailto:equinox-dev-bounces@xxxxxxxxxxx] En nombre de Neil Bartlett
Enviado el: miÃrcoles, 28 de abril de 2010 18:10
Para: Equinox development mailing list
Asunto: Re: [equinox-dev] Calling Equinox close command by code
The way to shutdown the OSGi framework is to obtain the system bundle
(id zero) and call stop():
This will work across all frameworks, not just Equinox.
On a meta note to the list... can we get this question and answer into
a FAQ somewhere? It seems to get asked every few weeks!
On Wed, Apr 28, 2010 at 5:05 PM, David Conde <dconde@xxxxxxxx> wrote:
> Is there any way to call the âcloseâ command by programming?
> I need something to call close command from my Visual User Interface in
> order to close the application though a button.
> Thank you in advance
> equinox-dev mailing list
equinox-dev mailing list