0%

Book Description

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.  

     


    Table of Contents

    1. Cover
    2. Frontmatter
    3. 1. What Is Java EE?
    4. 2. What Is a Java Specification Request (JSR)?
    5. 3. What Is a Reference Implementation?
    6. 4. What Is an Application Server?
    7. 5. What Is Jakarta EE?
    8. 6. Why Jakarta EE?
    9. 7. Jakarta EE and the Spring Framework
    10. 8. The Contexts and Dependency Injection (CDI) API
    11. 9. CDI Stereotypes
    12. 10. The CDI Ecosystem
    13. Backmatter
    3.145.8.42