
Software Design – The Proxy Pattern
We continue a look at the structural patterns with a look at the proxy. This is much like the flyweight we reviewed in the last episode. However, it has a different focus. The flyweight can be used to implement a form of proxy but is a solution to a large number of instances where this is a different goal. The Proxy Pattern Defined As always, we will start with the “Gang of Four” intent to set the stage for our discussion. “Provide a surrogate or placeholder for another object to control access to it.” That, once again, provides a short and simple description of our pattern. The proxy saves us from having to instantiate an object before we start using it. The proxy... Read more