Hi,
I am developping an
Applet as a Mainframe. Tools/Plugins can be added to this applet/frame via an addPlugin function. There is no need for dynamic Plugin extensibility.
Plugins are hardcoded. In most cases the data to work with is selected from a tree.
Those plugins should be able to communicate with each other and send/share data.
My approach was, that each plugin has its own data object (extends Oberservable) containing the data it needs. Every plugin can read/write the data object of any other plugin.
Plugins are informed of changes in ther data object by the notifyOberserves() method.
By this, i overwrite the data objects content.
Now my question:
Is there any good idea to implement inter plugin communication within one app(-let) ?
Assumed the data to communicate could change from plugin to plugin or while developing new ones. How to implement a kind of generic communication?
I hope someone will understand what I mean by all this ;)