In Spring, Everything is a Proxy.
Proxies are used by spring to add behaviour in the application classes.
All classes in spring get wrapped at-least in one proxy.
Spring uses both JSK and CGLib based proxies to achive the final spring behaviour.
Note:
private members / methods are not exposed by the proxies.
behavours added to the classes only impacted by calls thriugh the proxy.
Internal call to classes do not get the proxy behaviours.
No comments:
Post a Comment