java tutorial

Observer Pattern in Java with sample code example

Observer pattern in Java is one of most used core Java pattern which has heavily used in JDK and outside of Java development kit 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.

read full article at http://javarevisited.blogspot.com/2011/12/observer-design-pattern-java-example.html

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s