Originally posted by landon manning: A friend suggested that I use the listener pattern for a project that I'm working on. Could someone explain the the implementation of the listener patern. Thanks in advance Landon Manning
As mentioned in the course OOUML I'm taking right now, Observer is also known as Publish-Subscribe & Dependents Patterns. Problem: Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically. Participants: Subject, Observer, ConcreteSubject, ConcreteObserver a.k.a.: Publish-Subscribe, Dependents Known uses: Java's Observable class and Observer interface. Java's Model-View-Controller (MVC) architecture in Swing. Java's Delegate Event Model. IBM VisualAge Notification Framework used in Smalltalk and C++ Visual Builders. Microsoft Foundation Class (MFC)'s Document View architecture.
SCJP Java 2 - IBM Certified Enterprise Developer - WebSphere V4.0 & V5.0 - IBM Certified System Administrator - WebSphere Network Deployment V6.0 - Canadian Securities Course (CSC) Certification
subject: Could someone explain the listener pattern