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.
Proxy pattern in Spring
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...