This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes osgi: question about bundle communication / design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "osgi: question about bundle communication / design" Watch "osgi: question about bundle communication / design" New topic
Author

osgi: question about bundle communication / design

olze oli
Ranch Hand

Joined: Jun 20, 2009
Posts: 148
hi,

i'm building an application which can send events (with EventAdmin from apache felix), thats the GUI part (eg. "event/buttonXYZ"), so the listeners know when the user hits something in the gui that they should react, or not.
The problem is now that i dont know how many listeners i will have that listen to my main application (they are dynamic), so i have to tell the bundles(plugins) somehow to register itself with the EventHandler


can someone tell me whats the best practice in doing so?
Michael Van
Ranch Hand

Joined: Nov 25, 2003
Posts: 33
You should consider using Aries or Spring to register your service is the OSGi Service Admin Service. In my opinion, it is more straight-forward than putting in your classes.

Mike Van
Apache Software Foundation Committer

olze oli wrote:hi,

i'm building an application which can send events (with EventAdmin from apache felix), thats the GUI part (eg. "event/buttonXYZ"), so the listeners know when the user hits something in the gui that they should react, or not.
The problem is now that i dont know how many listeners i will have that listen to my main application (they are dynamic), so i have to tell the bundles(plugins) somehow to register itself with the EventHandler


can someone tell me whats the best practice in doing so?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: osgi: question about bundle communication / design
 
Similar Threads
How often the listeners as well as filters are used in applications by companies??
good old(!) MVC
i need help with a simple add, subtract, cal. applet
how to implement MVC?
Separate Actions and GUI