Proxy pattern ஒரு பொருளுக்கு placeholder அல்லது surrogate வழங்கும் இது அந்த பொருளுக்கான access ஐ கட்டுப்படுத்த உதவுகிறது. proxy இல் real object போன்ற same interface இருக்கும் ஆனால் அது அதற்கு delegate செய்வதற்கு முன்பு lazy loading, access control, caching, அல்லது logging போன்ற நடத்தை சேர்க்கிறது.
Proxy pattern என்ன செய்கிறது
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"
