concept decorator in category dependency injection

appears as: Decorator, A Decorator, Decorators, A Decorator, Decorator
Dependency Injection

This is an excerpt from Manning's book Dependency Injection.

Figure 9.4 shows the relationship between IGreeter, FormalGreeter, and SimpleDecorator. Because SimpleDecorator doesn’t do anything except forward the call, it’s pretty useless. Instead, a Decorator can choose to modify the input before delegating the call.

Dependency Injection in .NET

This is an excerpt from Manning's book Dependency Injection in .NET.

To implement cached currencies, you’re going to implement a Decorator that modifies a “proper” Currency implementation.

Listing 9.3. Composing a Decorator