A proxy, in its most general form, is a class functioning as an interface to something else. ↗️
The proxy could interface to anything :
• A network connection 🌐
• A large object in memory 🗂
• A file 📄
• Some other resource that is expensive or impossible to duplicate. 💸
🔹🔸🔹🔸🔹🔸
One way of thinking about proxies, is by the analogy to The Matrix 🕶 by Krzysztof Koźmic 🤔 :
“People in the matrix aren’t the actual people ( “The spoon does not exist”, remember❓)
They’re proxies to the actual people that can be… wherever.🌍
They look like ones, they behave like ones, but at the same time, they are not them actually.🙅🏻♂️
Another implication is the fact that different rules apply to proxies.✳️
Proxies can be what the proxied objects are, but they can be more (flying, running away from bullets, that kind of stuff).✈️
One more important thing, is that proxies ultimately delegate the behavior to the actual objects behind them (kind of like – “if you’re killed in the matrix, you die in the real life as well”☠️).”
A dynamic proxy is a proxy that is generated on the fly at runtime. ✅
https://t.me/pgimg/70
〰〰〰〰〰〰
#Proxy #DynamicProxy
@ProgrammingTip