Le pattern Proxy fournit un substitut ou un intermédiaire pour un autre objet afin de contrôler l'accès à celui-ci. Le proxy a la même interface que l'objet réel mais ajoute du comportement — comme le chargement différé, le contrôle d'accès, la mise en cache ou la journalisation — avant de déléguer à celui-ci.
Ce que fait le pattern Proxy
PROXY → an object that STANDS IN for another, controlling access to it:
→ same interface as the real object (clients use it transparently)
→ adds behavior BEFORE/AROUND delegating to the real object
→ controls WHEN and HOW the real object is accessed
→ "a stand-in that adds control/behavior"
