Multicaster
The multicaster package provides utility classes for low-cost event dispatch to multiple listeners. Modeled after the AWTEventMulticaster this class provides type-safe and thread-safe generic method dispatch. The benefit of this approach to handling multiple listeners is the low overhead - when there is a single listener there is zero cost, and each additional listener requires only two additional method calls.
A basic implementation is provided, the DefaultMulticaster, which uses dynamic proxies to minimize the amount of new code that must be written in order to use a multicaster.
Download
Please note that the source distribution build script requires Ant 1.6.5 and the Imp library to be present in the Ant lib directory. The bundle binary distribution packages all required dependencies in one distributable JAR and contains all classes needed to use Multicaster.