Proxy pattern in Spring
Proxy design pattern provides an object of class that has the functionality of another class. This pattern comes under the structural design pattern of GOF design patterns. According to GOF pattern, Provide a surrogate or placeholder for another object to control access to it. The intent of this design pattern is to provide a different class for another class with its functionality to the outer world.
Proxying classes using Decorator pattern in Spring
As you have seen in Chapter 3, Consideration of Structural and Behavioral Patterns, according to GOF book, Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality. This pattern allows you to add and remove behaviors to an individual object at the runtime dynamically or statically without changing the existing behavior of other associated objects from the same class.
In Spring AOP, CGLIB is used to create the proxy in the application...