Using @Produces with Instance

22 views
Skip to first unread message

Puneet Kapahi

unread,
Feb 19, 2017, 10:30:46 AM2/19/17
to CDI Advocate
Hi,

Could you please tell me the solution to the exercise in the Advanced section of Tutorial II of CDI?

Exercise: Please combine the use of Instance with a producer to define the same type of lookup but have the business logic and select lookup happen in the TrasportFactory

I am getting a StackOverFlow error when I try to combine Instance with @Producer methods.

Thanks,
Puneet

Reply all
Reply to author
Forward
0 new messages