proxy-decorator-wrapping-spectrum

Status: IN

Proxy and Decorator both wrap an object behind a compatible interface but differ in intent and relationship: Decorator adds responsibilities dynamically with open-ended recursive composition, while Proxy controls access (remote, protected, virtual) with a static relationship to a fixed subject — placing them at opposite ends of a single-child wrapping spectrum from dynamic enhancement to static mediation.

Justifications

Three base beliefs on wrapping semantics unify into a spectrum from dynamic enhancement to static access control

Depends on (SL): proxy-vs-decorator-static-vs-dynamic, decorator-dynamic-alternative-to-subclassing, decorator-transparent-enclosure

Depended on by

JSON