Hi All,
CDI does a great job of minimizing the boiler plate for qualified injection at compile time. Unfortunately, after becoming somewhat hooked on Guice's Assisted injection I can't see CDI can be anywhere near as clean and productive with runtime classification. I hope I am wrong....
It's also easiest if I have a simple example. An online dynamic/realtime data service has just provided me with a Collection<Invention>. Because these are Inventions
I don't know anything about them at compile time.
Now, that I have the latest Invention's I want to use each Invention as a Qualifier to have the Invention's associated object's injected throughout my application. Which are then used to inject other objects and so on...
How's this best achieved in CDI?
Perhaps I am asking too much, and this is not really what CDI is used for. Perhaps it is appropriate to use Guice's assisted Injection underneath CDI.
I'm really unsure about all this, but that is stating the obvious.
Anyone care to share their experience with this (or align my brain with how CDI resolves such a problem)?
Cheers
--AH