The whiteboard pattern for events and dependencies is defined here:
http://www.osgi.org/documents/osgi_technology/whiteboard.pdf
Apparently the traditional Java pattern for synchronous event
subscription (used for extension) is of having each subscriber for a
given kind of event register with the event source -- the event
source maintains a list of people interested in it. This pattern
doesn't scale well, as the paper above explains, and has many
disadvantages (debugging, event observing, additionnal classes
needed, vector allocation, etc).
The Zope event model of having a registry between the event source
and the event listener is much better, and that's roughly what OSGi
calls the "whiteboard" pattern. In the Zope case the registry is the
adapter registry, in OSGi the bundle registry is used.
Some people much prefer the whiteboard pattern over Eclipse extension
point:
http://www.mail-archive.com/[email protected]/msg00091.html
My question is: how does this compare to what we use in NXRuntime?
What's our pattern?
Florent
--
Florent Guillaume, Nuxeo (Paris, France) Director of R&D
+33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED]
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm