Coding Simplified
Learn: Properties & Implementation with example in Java of Observer Design Pattern
Source Code:https://thecodingsimplified.com/observer-design-pattern/
Do Watch video for more info
This Problem is synonym of following problems:
observer design pattern java,
Create notification service,
Kafka topic subscriber service,
real time example for observer design pattern in java,
when to use observer design pattern,
observer design pattern in java,
observer design pattern in spring,
design patterns in java,
observer design pattern implememt,
how kafka topic & observer works
Please check video for more info:
CHECK OUT CODING SIMPLIFIED
https://www.youtube.com/codingsimplified
★☆★ VIEW THE BLOG POST: ★☆★
http://thecodingsimplified.com
I started my YouTube channel, Coding Simplified, during Dec of 2015.
Since then, I’ve published over 200+ videos.
★☆★ SUBSCRIBE TO ME ON YOUTUBE: ★☆★
https://www.youtube.com/codingsimplified?sub_confirmation=1
★☆★ Send us mail at: ★☆★
Email: thecodingsimplified@gmail.com
Source
Thanks a lot
Excellent !!!!!
Lucid and very easy to understand. Thank you bro
Thank you
Just want to say one thing Spring framework has ApplicationEventListners which is designed using this pattern. If you can explain how does spring did that things will be too easy….for viewers. Thanks.
You have an easy way to explain, thanks.
Awesome 👍
Actually as per the GOF, the update method does not take any parameter, instead we get the state(location) from the subject itself by calling subject.getLocation() in the update(). And obviously subject would be as member variable in observer in order to get the state.
Also, when you would pass the subject in the constructor of observer, you would call the subject.register(this) in order to register the observer.
After watching a lot of videos on this pattern, I got to know about it, like how it is written properly.
Thank you for the explanation, however I have a doubt. How will we be able to implement if the user wants to know the current location of the "article", if they have not registered? Basically how can they request themselves for the data, instead of being pushed the data? Thanks in advance, nice explanation.