Тёмный

Observer Design Pattern in Java 

Coding Simplified
Подписаться 43 тыс.
Просмотров 17 тыс.
50% 1

Learn: Properties & Implementation with example in Java of Observer Design Pattern
Source Code:thecodingsimpl...
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
/ codingsimplified
★☆★ VIEW THE BLOG POST: ★☆★
thecodingsimpli...
I started my RU-vid channel, Coding Simplified, during Dec of 2015.
Since then, I've published over 200+ videos.
★☆★ SUBSCRIBE TO ME ON RU-vid: ★☆★
www.youtube.co...
★☆★ Send us mail at: ★☆★
Email: thecodingsimplified@gmail.com

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@rahuldubey754
@rahuldubey754 3 месяца назад
watching it now, and its still very good compare to other tutorials. great work @Coding Simplified.
@codingislit1404
@codingislit1404 Год назад
Thanks a lot
@CodingSimplified
@CodingSimplified Год назад
Thanks for your nice feedback. Keep Watching :)
@himanshusrihsk5636
@himanshusrihsk5636 Год назад
❤liked your explanation. Thanks
@MK72887
@MK72887 2 года назад
Lucid and very easy to understand. Thank you bro
@CodingSimplified
@CodingSimplified 2 года назад
Thanks for your nice feedback. Keep Watching.
@shadiismailalzouabi1035
@shadiismailalzouabi1035 3 года назад
You have an easy way to explain, thanks.
@CodingSimplified
@CodingSimplified 3 года назад
Thanks for your nice feedback. Keep Watching
@SushilYadav7
@SushilYadav7 4 года назад
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.
@dinkarinjosh
@dinkarinjosh 3 года назад
well, think about it, since an observer has the object of the subject(the implementation of subject), any observer (mistakenly or intentionally)may call update through the object, and all the observer may get wrong information. What you say is correct as per GoF, but I have found this implementation better. GoF gives you an outline you can always improve that. I am not an expert. just curious.
@dinkarjoshi3309
@dinkarjoshi3309 3 года назад
@sushil yadav
@SandeepKumar-vy5cn
@SandeepKumar-vy5cn 2 года назад
Excellent !!!!!
@CodingSimplified
@CodingSimplified 2 года назад
Thanks for your nice feedback. Keep Watching.
@jamshadm
@jamshadm 2 года назад
Thank you
@CodingSimplified
@CodingSimplified 2 года назад
Thanks for your nice feedback. Keep Watching.
@dinkarinjosh
@dinkarinjosh 4 года назад
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.
@CodingSimplified
@CodingSimplified 4 года назад
Thanks. Sorry for late reply. Somehow i missed it. Observer Design pattern is used only for Notification system. To implement your case, we can have a another API, where we can call GET request, which'll give me all required attributes of article, i.e location, name, title, etc. Let me know if you've any further question on it.
@dinkarinjosh
@dinkarinjosh 4 года назад
@@CodingSimplified Thank you so much, makes sense, my question was beyond the scope of the Observer pattern. keep up the good work.
@pratyush__agarwal
@pratyush__agarwal 4 года назад
Awesome 👍
@CodingSimplified
@CodingSimplified 4 года назад
Thanks for your nice feedback. Keep Watching.
@speedbreaker5642
@speedbreaker5642 3 года назад
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.
Далее
Observer Pattern - Design Patterns (ep 2)
49:47
Просмотров 567 тыс.
ТИПИЧНОЕ ПОВЕДЕНИЕ МАМЫ
00:21
Просмотров 1,1 млн
Builder Design Pattern in Java
12:23
Просмотров 59 тыс.
Flyweight Design Pattern in Java
10:45
Просмотров 18 тыс.
Observer Pattern Tutorial
15:40
Просмотров 6 тыс.
The observer pattern (with Java example)
16:02
Просмотров 34 тыс.
Observer Design Pattern
22:27
Просмотров 662 тыс.
Observer Design Pattern in Java
14:34
Просмотров 172 тыс.
CompletableFuture in Java 8 -  (Part 1)
23:35
Просмотров 21 тыс.