© Jennifer M. Kohnke
Symbolism erects a facade of respectability to hide the indecency of dreams.
The two patterns discussed in this chapter have a common purpose: imposing some kind of policy on another group of objects. FACADE imposes policy from above; MEDIATOR, from below. The use of FACADE is visible and constraining; that of MEDIATOR, invisible and enabling.
The FACADE pattern is used when you want to provide a simple and specific interface onto a group of objects that have a complex and general interface. Consider, for example,
DB.cs in Listing 34-9. This class imposes a very simple interface, ...