From the course: Java EE: Contexts and Dependency Injection

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Disambiguate by publication type and language

Challenge: Disambiguate by publication type and language

From the course: Java EE: Contexts and Dependency Injection

Start my 1-month free trial

Challenge: Disambiguate by publication type and language

(echoing cymbal) - [Instructor] Your challenge is to code a qualifier that disambiguates by publication type and language. The qualifier will need two annotation members. The first annotation member should be an enum called type, that disambiguates the type of publication. This will be book, magazine, newspaper, and DVD. The second annotation should be the language of the publication which will be English, Chinese, and Spanish. To complete this challenge, you will need an interface and country implementations, which you should annotate correctly. You will also need a publication service class into which you inject a publication. This task should not take you more than about 15 minutes.

Contents