CDI (Context Dependency Injection)

Context Dependency Injection (CDI)

– knit the web and transactional tiers together of the JEE platform
– is a set of services used together
– allows developers to use enterprise beans along with Java Server Faces (JSF) technology in web applications
– is desinged for use with stateful objects
– provides a great deal of flexibility to integrate various kinds of components in a loosely coupled but typesafe way

CDI is specified by JSR 299, formerly known as Web Beans. Related specifications that CDI uses include the following:

– JSR 330, Dependency Injection for Java
– The Managed Beans specification, which is an offshoot of the Java EE 6 platform specification (JSR 316)

Continue reading “CDI (Context Dependency Injection)”