Code Libraries, Observers, and Notifiers
Despite the fact I’ve been writing programs for a good number of years, I’ve only recently started to build a library of all those usefulĀ code fragments that seem to follow me from project to project.
The most recent additions to my library are a rewrite of the Observer classes that are packaged with the the Java SDK that makes use of generics, and, on a related theme, two implementations of a generic Notifier (essentially typed publish/subscribe without the filtering). The first implementation is single-threaded and blocks while subscribers are updated, while the second provides asynchronous operation by using a notifier thread working off an event queue.
If you would like to use either piece of code in your own software then you can download it using the links below.
About this entry
You’re currently reading “Code Libraries, Observers, and Notifiers,” an entry on Graeme Stevenson
- Published:
- 5.16.09 / 12am
- Category:
- software
- Tags:
No comments
Jump to comment form | comments rss [?] | trackback uri [?]