java tutorial

How to implement observer design pattern in Java

Observer design 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.



Leave a Reply

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

You are commenting using your 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