An open API service indexing awesome lists of open source software.

https://github.com/hellyaxs/design_pattern_es


https://github.com/hellyaxs/design_pattern_es

desing-patterns observer-pattern python study

Last synced: about 10 hours ago
JSON representation

Awesome Lists containing this project

README

          

## Obersevações

#### estrutura do padrão

Alt text

```mermaid
classDiagram
class Publisher {
- Subscriber[] subscribers
- mainState
+ subscribe(s: Subscriber)
+ unsubscribe(s: Subscriber)
+ notifySubscribers()
+ mainBusinessLogic()
}

class Subscriber {
+ update(context)
}

class ConcreteSubscriber {
+ update(context)
}

class Client {
+ createPublisher()
+ createSubscriber()
}

Publisher --> Subscriber : notifies
Subscriber <|-- ConcreteSubscriber
Client --> Publisher : subscribes
Client --> ConcreteSubscriber : creates

```