need help on event notifier/listener pattern

hi,i am designing an event-driven system,i hope to get some reference materials and source code of event notifier pattern.could anybody here give me some help?thank you in adavance!woo
[219 byte] By [wuym2000] at [2007-9-26 16:23:11]
# 1

Check out java.awt.event, it's a pretty decent event paradigm. If you download the full JDK with source you can look at how they implemented it, too.

The backbone of a message driven system is a concept called a message loop - it loops (until directed to exit by an event), polling for new events and dispatching them to a known listener. Less sophisticated applications can hard-code the dispatching of messages into a big switch statement within the message loop, larger ones (and event frameworks) should provide a mechanism for registering an instance of a listener to service specified events.

javastevec at 2007-7-2 19:56:14 > top of Java-index,Other Topics,Patterns & OO Design...