Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

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

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

Rating: 0 out of 5 stars

()

Read preview

About this ebook

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.  

     


    LanguageEnglish
    PublisherApress
    Release dateFeb 12, 2020
    ISBN9781484256428
    Introducing Jakarta EE CDI: Contexts and Dependency Injection for Enterprise Java Development

    Related to Introducing Jakarta EE CDI

    Related ebooks

    Programming For You

    View More

    Related articles

    Reviews for Introducing Jakarta EE CDI

    Rating: 0 out of 5 stars
    0 ratings

    0 ratings0 reviews

    What did you think?

    Tap to rate

    Review must be at least 10 words

      Book preview

      Introducing Jakarta EE CDI - Luqman Saeed

      © Luqman Saeed 2020

      L. SaeedIntroducing Jakarta EE CDIhttps://doi.org/10.1007/978-1-4842-5642-8_1

      1. What Is Java EE?

      Luqman Saeed¹ 

      (1)

      Accra, Ghana

      At its core, the Java Enterprise Edition (Java EE), formerly known as J2EE, is a collection of abstract, standardized specifications that prescribe solutions to commonly faced challenges in software development.

      It is important to note the word abstract in this definition. This means that Java EE is simply a set of interfaces and contracts that provide a public-facing API for developers.

      These abstract specs are also said to be standardized. What does that mean? It means that the entire collection of Java EE APIs are published according to well-defined criteria set by experts in the subject field of the API¹.

      By standardized, it also means that every Java EE API has gone through the rigorous process of the Java Community Process’s Java Spec Request program. The result of this process is a set of APIs that are industry-tried and -tested and are deemed to be here to stay.

      However, remember that I said Java EE is abstract, right? Well, even though you will generally code against the Java EE APIs in the javax.* packages, you can’t run your application on Java EE per

      Enjoying the preview?
      Page 1 of 1