Proxy Pattern
noun
say it: “PROK-see PAT-urn” /ˈprɑksi ˈpætərn/
A design pattern that puts a stand-in with the same interface in front of an object, to control who may call it, when it's made, or where it lives.
What is the Proxy pattern?
The Proxy pattern puts a stand-in in front of an object. It keeps the same interface, so callers can't tell it from the real one, and decides whether, when or where each call goes through. A protection proxy refuses a guest's unlock; a virtual proxy makes a big object only when it's first needed; a remote proxy stands in for a service far away.
In a sentence
- “Once every control got the front door through the Proxy pattern, the wall panel stopped letting guests in.”
Level: Freelancer · More OOP terms at this level
Updated