How to use Observer Pattern in Java with Example
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 2975
Total Votes: 12 votes
Category: JAVA/Core JAVA
Submitted on: 2012-01-05 15:08:52
Submitted By: Javin Paul
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. More detail...