Decorator: sending notifications
Add behaviour to an object by wrapping it in another object with the same interface.
Level Intermediate
What you will see
- One email, three extra jobs
- One class, one option per job
- A notifier that holds a notifier
- Before, after or around the call
- The order of the layers
- When not to use it
Before / after
Base: decorator-base-tsView the diff