Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » signal all plugins to perform action(how to signal all plugins of a defined type to perform an action?)
signal all plugins to perform action [message #681893] Fri, 10 June 2011 03:01 Go to next message
Quincy Mitchell is currently offline Quincy MitchellFriend
Messages: 1
Registered: June 2011
Junior Member
i have a bunch of plugins have that hold some business logic cache. is it possible from some plugin to tell all other plugins to refresh?

if not, then i have to put the cache in a central place.
Re: signal all plugins to perform action [message #682135 is a reply to message #681893] Fri, 10 June 2011 13:38 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

For inter-plugin communication, you should look at creating OSGi services. You create a service interface and an implementation. All the concerned plugins can look up that service and register. Then the service can inform them of the refresh requirement.

If the business logic cache contains the same info, you can do the same thing. Create a business logic cache service, and have all of the plugins look up that service and talk to it.

Some links on OSGi services:

http://aniszczyk.org/2008/03/08/visualizing-osgi-services/
http://www.vogella.de/articles/OSGi/article.html#desconsumer
http://www.knopflerfish.org/osgi_service_tutorial.html


Previous Topic:JasperWave - completely new Eclipse-based designer for JasperReports
Next Topic:Context menu actions in Common Navigator
Goto Forum:
  


Current Time: Thu Apr 25 16:36:21 GMT 2024

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

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

Back to the top