Skip to content

Glossary: Software Design Patterns in Java

Decorator

Also written: decorator pattern

A wrapper that implements the same interface as the object it wraps, does a little extra work and passes the call on. `LoggedCarrier` logs each quote.

Where the book teaches it

Related terms

WrapperProxyAdapter