dp proxy pattern introduction as per wikipedia" proxyin its most general formis class functioning as an interface to something else the proxy could interface to anythinga network connectiona large object in memorya fileor some other resource that is expensive or impossible to duplicate well-known example of the proxy pattern is reference counting pointer object proxy pattern is an example of structural design patterns it is also referred to as --surrogate|pattern as the intention of this pattern is to create surrogate for the real object/class proxy pattern has three essential elementsreal subject (that performs the business objectivesrepresented by proxyproxy class (that acts as an interface to user requests and shields the real subjectclient (that makes the requests for getting the job donethis design pattern is typically used in situations when creation of object for real subject class is costly in terms of resources and simple object creation by proxy class can be cheaper option www testingperspective com