October 2017
Intermediate to advanced
396 pages
10h 2m
English
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. CGLIB proxying works by generating a subclass of the target class at runtime. Spring configures this generated subclass to delegate method calls to the original target--the ...
Read now
Unlock full access