Java EE 8 High Performance
上QQ阅读APP看书,第一时间看更新

Context and Dependency Injection – what did you do to my beans?

Context and Dependency Injection (CDI) is the central specification of Java EE. Its role is to manage the beans you define. It is directly linked to the pattern called Inversion of Control (IoC), which provides a way to obtain loose coupling between your classes. The goal is to be flexible on the way so that the current instances are linked together. It also controls the life cycle and the instantiation of instances.