Contextual objects with a well-defined lifecycle providing multiple scopes of availability
Ability to bind directly between contextual objects and Unified Expression Language (EL)
Dependency injection utilizing a type-safe system ...
13. Contexts and Dependency Injection
Josh Juneau1
(1)
Hinckley, Illinois, USA
One of the most important specifications in the Java EE platform is Contexts and Dependency Injection (CDI). As stated on the cdi-spec.org site, it is a suite of complementary services that can improve the overall structure and design of code. The specification provides the following features for Java EE and Java SE applications, as per the cdi-spec.org:
Get Java EE 8 Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.