The 'Gang of Four' Companion:

Proxy Design Pattern

Formal specification of design patterns in LePUS3 and Class-Z

Print this document

This page is part of the The 'Gang of Four' Companion dedicated to the formal specification in LePUS3 and Class-Z of patterns from the 'Gang of Four' catalogue [Gamma et al 1995].

Links

Download:

The Proxy design motif

The informal description: Excerpts from [Gamma et al. 1995] (adapted for this purpose):

Intent: Provide a surrogate or placeholder for another object to control access to it.

Structure: Original OMT diagram converted to UML (Why and How?):

Proxy in UML

Participants:

Collaborations: Proxy forwards requests to RealSubject when appropriate, depending on the kind of proxy.

Formal specification

See also:

Proxy in LePUS3
Proxy in LePUS3 (legend)
Proxy in Class-Z (legend)