• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is Observer and Observable?

 
Hemant Agarwal
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is Observer and Observable? What is their use?
 
fred rosenberger
lowercase baba
Bartender
Posts: 12084
29
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They're part of the Observer pattern. you have one object that notifies a bunch of others when needed. many "observers" may register with an "observable", and all may un-register.

Check out the Head First Design Patterns book, or google "design patterns observer" and you'll find tons of into...
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a good IBM Developerworks tutorial on event delivery techniques, which you can find here. It covers Observer/Observable, JavaBean event techniques and more.
[ January 01, 2006: Message edited by: Ulf Dittmer ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic