aurelius
aurelius

Reputation: 4076

What entity deals with dependency injection? in CDI and EJB3

I have a basic know-how understanding about EJB3 and CDI but i want to dig deeper and understand how this 2 DI implementations actual work.

stackoverflow.com/questions/4684112/how-do-cdi-and-ejb-compare-interact

I have studied them but i fail to find what entity deals with the actual injection of the objects in the annotated variables and and by who is called.

Any help in this is welcomed. Thank you!

Upvotes: 2

Views: 160

Answers (1)

Kayaman
Kayaman

Reputation: 73568

The "entity" that handles the injection is any injection framework, such as the reference implementation Weld for CDI or any particular EJB framework included in an application server.

The calling is done by the client code, which will reference the framework's proxies and enable the framework to perform actions.

Upvotes: 3

Related Questions