https://github.com/shaikrasheed99/observer-pattern
Implementation of Observer Pattern.
https://github.com/shaikrasheed99/observer-pattern
design-patterns java observer-pattern tdd tdd-java
Last synced: about 2 months ago
JSON representation
Implementation of Observer Pattern.
- Host: GitHub
- URL: https://github.com/shaikrasheed99/observer-pattern
- Owner: shaikrasheed99
- Created: 2022-04-16T03:14:09.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-16T06:25:53.000Z (about 3 years ago)
- Last Synced: 2025-01-13T19:39:05.427Z (4 months ago)
- Topics: design-patterns, java, observer-pattern, tdd, tdd-java
- Language: Java
- Homepage:
- Size: 140 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Observer Pattern examples using Test Driven Development
## Example-1 (NewsLetter):
* There is a newsletter publisher, who has one to many relationships with readers.
* Whenever a new arrival of news has happened, then the publisher will send notification to all kinds of subscribers of it.
* Subscribers can freely subscribe or unsubscribe from the newsletter.
### code: [NewsLetter](https://github.com/shaikrasheed99/observer-pattern/tree/master/src/main/java/com/tw)
## Example-2 (Youtube channel):
* The YouTube channel publisher will send notification to its subscribers whenever a new video is uploaded.
* Subscribers can freely subscribe or unsubscribe from the channel.
### code: [Youtube channel](https://github.com/shaikrasheed99/observer-pattern/tree/master/src/main/java/com/tw)
## Class Diagram of both examples:
