Understanding Jakarta EE 8 — CDI (Part 2): Qualifying Your Beans

In order for the CDI container to recognize your bean for injection, your bean needs to be qualified. This can be achieved by associating a bean with a qualifier type. A qualifier type represents some client-visible semantic associated with a type that is satisfied by some implementations of the type (and not by others).

In other words, a qualifier type identifies a bean with a type that can be satisfied with one specific implementation of the same type (else it becomes an unsatisfied dependency).

Let’s look at how a bean can be qualified using bean qualifier types.

Default image
Lingaraj Senapati
Hey There! I am Lingaraj Senapati, the Co-founder of lingarajtechhub.com My skills are Freelance, Web Developer & Designer, Corporate Trainer, Digital Marketer & Youtuber.
Articles: 142

Newsletter Updates

Enter your email address below to subscribe to our newsletter

Leave a Reply

thirteen + 18 =

Physical Address

Patia, Bhubaneswar, khordha, 751024, Odisha, India