Solly
Lesson

Vocabulary: Proxy

Vocabulary after construction: Proxy

The previous exercise began with Expected Behavior and design pressure, not with this name.

The structure that emerged is traditionally called Proxy.

What the reasoning established

  • Stable role: Both guarded and real objects provide document read behavior.
  • Change pressure: Access policy is independent from document retrieval.
  • Ownership/lifetime when relevant: The root wires the proxy around the target.
  • Structural consequence: A surrogate stands in front of the target.
  • Runtime topology: authorize first, delegate only on success.

Nearby distinction

Decorator: Proxy governs access/identity/lifecycle around a capability; Decorator stacks additional behavior.

Simplify

Ask whether any abstraction can be removed while preserving the original acceptance behavior and design-stress property. If yes, prefer the simpler design.

Use the pattern name to communicate a structure you can already justify. Do not use the name as a recipe that replaces requirements analysis.

Sign in with an enabled provider to save your lesson progress.
Sign in to track progress

Loading sign-in options…