Skip to main content

The Contexts and Dependency Injection (CDI) API

  • Chapter
  • First Online:
Introducing Jakarta EE CDI
  • 651 Accesses

Abstract

Dependency injection (DI) is a way of developing software such that various components are related in a very loosely coupled way. In most software applications, there is always some form of dependency between the various bits and pieces.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://en.wikipedia.org/wiki/Inversion_of_control

  2. 2.

    http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#concepts

  3. 3.

    https://docs.jboss.org/cdi/api/2.0/javax/enterprise/context/ApplicationScoped.html

  4. 4.

    https://docs.jboss.org/cdi/api/2.0/javax/enterprise/context/RequestScoped.html

  5. 5.

    Qualifiers are covered in Chapter 10.

  6. 6.

    https://javaee.github.io/tutorial/jsf-el.html

  7. 7.

    https://docs.jboss.org/cdi/api/2.0/javax/enterprise/context/SessionScoped.html

  8. 8.

    https://docs.jboss.org/cdi/api/2.0/javax/enterprise/context/ConversationScoped.html

  9. 9.

    https://docs.jboss.org/cdi/api/2.0/javax/enterprise/context/Dependent.html

  10. 10.

    https://download.oracle.com/otndocs/jcp/ejb-3_2-fr-spec/index.html

  11. 11.

    https://docs.jboss.org/cdi/api/2.0/javax/enterprise/inject/Any.html

  12. 12.

    https://docs.oracle.com/javaee/7/api/javax/inject/Named.html

  13. 13.

    https://docs.jboss.org/cdi/api/2.0/javax/enterprise/inject/Default.html

  14. 14.

    https://docs.jboss.org/cdi/api/2.0/javax/enterprise/context/Initialized.html

  15. 15.

    https://docs.jboss.org/cdi/api/2.0/javax/enterprise/context/Destroyed.html

  16. 16.

    https://docs.jboss.org/cdi/api/2.0/javax/enterprise/inject/Produces.html

  17. 17.

    http://omnifaces.org/

  18. 18.

    https://docs.oracle.com/javaee/7/api/javax/persistence/EntityManager.html

  19. 19.

    https://docs.oracle.com/javaee/7/api/javax/annotation/PostConstruct.html

  20. 20.

    https://docs.oracle.com/javaee/7/api/javax/interceptor/InvocationContext.html

  21. 21.

    https://docs.oracle.com/javaee/7/api/javax/annotation/PreDestroy.html

  22. 22.

    https://docs.oracle.com/javaee/7/api/javax/interceptor/InterceptorBinding.html

  23. 23.

    https://docs.oracle.com/javaee/7/api/javax/interceptor/InvocationContext.html

  24. 24.

    https://docs.jboss.org/cdi/api/2.0/javax/enterprise/event/Event.html

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Luqman Saeed

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Saeed, L. (2020). The Contexts and Dependency Injection (CDI) API. In: Introducing Jakarta EE CDI. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5642-8_8

Download citation

Publish with us

Policies and ethics