Introduction to CDI Decorator and Interceptor
Channel: Otavio Santana
Date: 2022-09-01

Composite over inheritance is an OOP design principle we've followed for several years. Like me, you might have seen it in the Effective Java book, and we have wanted to pursue it since then. 

The inheritance brings several pitfalls, such as its maintainability and clear code. Beyond the semantics, the sample that I love to use is the cake that needs Salt. It does not make sense for a Cake to extend a Sea only because it needs Salt. In this case, it is a much better composition as well. 

On the CDI, we can avoid the inheritance with the Decorator and the interceptor in several moments.

In this video, we'll explore the power of interceptor and Decorator to make it easier for you to apply the Composition over inheritance principle using this powerful CDI engine.

Introduction to CDI Decorator and Interceptor

Topics Covered in this video:
0:00 Introduction to CDI Decorator
7:27 Interceptor
17:12 End

#CDI #Decorator #Interceptor #OtavioSantana