Introducing Jakarta EE CDI: Contexts and Dependency Injection for Enterprise Java Development

  • 48m
  • Luqman Saeed
  • Apress
  • 2020

Discover the Jakarta EE Contexts and Dependency Injection (CDI 2.0) framework which helps you write better code through the use of well-defined enterprise Java-based components and beans (EJBs). If you have ever wanted to write clean Java EE code, this short book is your best guide for doing so: you will pick up valuable tips along the way from your author's years of experience teaching and coding. Introducing Jakarta EE CDI covers CDI 2.0 in detail and equips you with the theoretical underpinnings of Java EE, now Jakarta EE.

This book is packed with so much that by the end of it, you will feel confident to use your new-found knowledge to help you write better, readable, maintainable, and long-lived mission-critical software.

What You Will Learn

  • Write better code with the Jakarta EE Contexts and Dependency Injection (CDI) framework
  • Work with the powerful, extensible, and well-defined contextual life cycle for components
  • Use CDI’s mechanism for decoupling application components through a typesafe event API
  • Build typesafe interceptors for altering the behaviour of components at runtime
  • Harness the well-defined qualifier system for easy isolation of beans
  • Convert almost any valid Java type to a CDI managed bean with CDI’s producer mechanism

Who This Book Is For

Experienced enterprise Java, Java EE, or J2EE developers who may be new to CDI or dependency injection.

About the Author

Luqman Saeed is a Java EE developer with Pedantic Devs. He has been doing software development for close to a decade. He started with PHP and now does Java EE full time. His goal on Udemy is to help you get productive with the powerful, modern, intuitive and easy-to-use Java EE APIs. He will serve you the best of vanilla, pure, and awesome Java EE courses to help you master the skills needed to solve whatever development challenge you have at hand.

In this Book

  • What is Java EE?
  • What is a Java Specification Request (JSR)?
  • What is a Reference Implementation?
  • What is an Application Server?
  • What is Jakarta EE?
  • Why Jakarta EE?
  • Jakarta EE and the Spring Framework
  • The Contexts and Dependency Injection (CDI) API
  • CDI Stereotypes
  • The CDI Ecosystem