How to use Observer Pattern in Java with Example

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Observer pattern in Java is one of most used core Java pattern which has heavily used in JDK and outside of JDK in various frameworks like Spring, Str

Statistics

  • Total Hits - 26833

  • Total Votes - 100 votes

  • Vote Up - 43 votes

  • Vote Down - 57 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2012-01-05 15:08:52

Description

Observer pattern in Java is one of most used core Java pattern which has heavily used in JDK and outside of JDK in various frameworks like Spring, Struts and other Apache libraries. Observer pattern allows a publisher subscriber mechanism on which Subject notifies all interested subscriber for any change in object's state. Java has builtin support for observer pattern by java.util.Observable and java.util.Observer classes. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements