Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » synchronous bundle listener question to deny bundle to be installed?
synchronous bundle listener question to deny bundle to be installed? [message #75780] Fri, 27 October 2006 21:28 Go to next message
shean chang is currently offline shean changFriend
Messages: 11
Registered: July 2009
Junior Member
Could I use synchronous bundle listener as a way to approve or deny certain
bundle to be installed?
For instance if I don't want a given bundle to be installed then in my
listener call I should throw some type of exception or better if the API can
allow me to return a boolean so I can return my vote.
Re: synchronous bundle listener question to deny bundle to be installed? [message #76170 is a reply to message #75780] Wed, 01 November 2006 19:58 Go to previous message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
Hi Shean,

There is not way to do this with a sync bundle listener. The
BundleEvent.INSTALLED event type is the first event you will see. By
this time it is to late, the bundle is already available in the system.
Also the framework specification currently requires that framework
implementations swallow exceptions thrown by listeners (and log a
FrameworkEvent.ERROR) and continue with the event delivery to the next
listener. No extra action is taken because a listener throws an
exception while delivering an event.

You may want to take a look at the MEG specification in OSGi. I think
deployment admin in the MEG spec. may have a concept for resource
processors that can prevent bundles from being installed.

Tom.


Shean-Guang Chang wrote:
> Could I use synchronous bundle listener as a way to approve or deny certain
> bundle to be installed?
> For instance if I don't want a given bundle to be installed then in my
> listener call I should throw some type of exception or better if the API can
> allow me to return a boolean so I can return my vote.
>
>
Previous Topic:How to disable Equinox from caching my bundle?
Next Topic:Dojo, RSP and Internet Explorer
Goto Forum:
  


Current Time: Sat Apr 27 00:26:46 GMT 2024

Powered by FUDForum. Page generated in 0.03411 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top