Skip to main content



      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 17:28 Go to next message
Eclipse UserFriend
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 14:58 Go to previous message
Eclipse UserFriend
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: Mon Nov 10 12:34:31 EST 2025

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

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

Back to the top