Heads up! To view this whole video, sign in with your Courses Plus account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Observer Design Pattern using Java!
You have completed Observer Design Pattern using Java!
Preview
In the java.util package there is a class named Observable. It's been there a while, let's dust it off and use it to make our Restaurant Simulator hummmm.
Learn more
- Observable Java docs
- This is the other Observable from Reactive Extensions
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
it's clear that we're going to need
to make things more extensible.
0:00
Different clients are gonna
have different needs, and
0:00
we need to be able to configure things for
each of our clients specifically.
0:02
Observer to the rescue.
0:06
So I've got some great news for you.
0:07
The Observer pattern has been included in
the JDK pretty much from the beginning.
0:09
It's fairly well documented, and
it's pretty straightforward to implement.
0:14
There are some complaints about
the way that it's implemented,
0:17
and we'll explore those after we get
our hands dirty with it a little bit.
0:20
Now, a quick word of warning here.
0:23
There's been a somewhat recent trend in
what is known as reactive extensions.
0:25
RxJava is the Java flavored version.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up