It is probably evident by now that CDI provides many benefits for any nontrivial application, including applications that aren’t web-based. It may be surprising to find out that the CDI specification prior to version 2.0 officially only supported Java EE. Although Java SE was not officially supported, many CDI implementations did offer support for Java SE environments prior to the 2.0 specification. For example, both Weld and Apache OpenWebBeans offered support for Java SE. As the specification didn’t officially support ...
8. CDI in Java SE
Get Pro CDI 2 in Java EE 8: An In-Depth Guide to Context and Dependency Injection 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.