This content has been marked as final.
Show 2 replies
-
1. Re: Programmatic Lookup with incomplete Qualifiers
alesj Dec 1, 2011 4:30 AM (in response to ahhughes)What's wrong with
@Inject @Named(
ClarkKent
) SuperHeroAlterEgo superman; -
2. Re: Programmatic Lookup with incomplete Qualifiers
ahhughes Dec 1, 2011 8:53 PM (in response to ahhughes)
Ales Justin wrote on Dec 01, 2011 04:30:
What's wrong with
@Inject @Named(ClarkKent
) SuperHeroAlterEgo superman;Thanks Justin, but that doesn't correlate to my question. That's not programmatic lookup and at runtime I have either...
String someonesName = ...;
OR
Class<? extends SuperHero> superHeroClass = ...;
NEVER BOTH
Which means I can't do programmatic lookup with ALL qualifiers, only ever one of them (Named or SuperHeroType).
I'll keep hoping there is a solution for this.
Cheers
--AH