Java - Context and Dependency Injection (CDI)

> Procedural Languages > Java

1 - About

Dependency injection in Java.

Dependency injection is when the EJB container automatically supplies (or injects) a variable or setter method in the bean file with a reference to another EJB or resource or another environment entry in the bean's context.

Bean files supports dependency injection.

Advertising

3 - Documentation / Reference

  • Contexts and Dependency Injection (CDI) is specified by JSR-299
lang/java/dependency_injection.txt · Last modified: 2017/09/20 22:34 by gerardnico