dimanche 28 août 2016

In the real-life application, in which situation, the proxy design pattern will be used

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