I am just wondering in the real-life application, where should the proxy design pattern be used? Could you provide some example?
I read some articles about proxy design pattern, based on my understanding, proxy provides additional logic. But why the additional logic will be added in the proxy instead of the original object?
For example, a movie star has an agent, the agent will decide which movie the star will take based on payback, why the movie star can not make the decision by himself?
Aucun commentaire:
Enregistrer un commentaire