dimanche 8 octobre 2017

Why Spring Always Creates Proxy For Objects (Even For Local Objects)?

I want to know that why spring always creates proxies for objects managed by spring. As spring uses proxy design pattern for managing beans, it looks beneficial for many cases like RPC, Database calls, etc. But how proxy is beneficial for local objects.

And also is it ok to create proxy for beans having scope Prototype ?

Aucun commentaire:

Enregistrer un commentaire