-
1. Re: Solder: @Exact no @Qualifier
lightguard Sep 27, 2011 2:19 PM (in response to viviansteller.vivian.steller.uni-ulm.de)I'd have to dig a bit on this. There's a test for it in Solder, it should be working correctly.
-
2. Re: Solder: @Exact no @Qualifier
kennardconsulting Jun 5, 2012 6:16 AM (in response to lightguard)Hi Jason,
Did you ever resolve this? I've just hit the same problem. @Exact really isn't a @Qualifier, as can been seen here...
https://github.com/seam/solder/blob/develop/api/src/main/java/org/jboss/solder/core/Exact.java
...even though the JavaDoc says "An injection point qualifier that may be used to select the exact bean..."
Is this intentional? If it's not a @Qualifier, how is it intended to work?
Regards,
Richard.
-
3. Re: Solder: @Exact no @Qualifier
kennardconsulting Jun 5, 2012 6:17 AM (in response to kennardconsulting)Note that it did used to be a @Qualifier when Gavin originally wrote it...
-
4. Re: Solder: @Exact no @Qualifier
kennardconsulting Jun 5, 2012 7:55 PM (in response to kennardconsulting)Okay, appears to be a bug. Opened a JIRA: https://issues.jboss.org/browse/SOLDER-331
-
5. Re: Solder: @Exact no @Qualifier
lightguard Jun 6, 2012 7:43 PM (in response to kennardconsulting)Thanks Richard, but it's highly unlikely that bug (or really any from here on out) will be fixed in Seam 3. All work has moved over to DeltaSpike.
-
6. Re: Solder: @Exact no @Qualifier
kennardconsulting Jun 6, 2012 7:49 PM (in response to lightguard)Okay cool. Is @Exact in DeltaSpike? This might be a perfect opportunity to rename/refactor it. Could you pass the bug over to the DeltaSpike JIRA?
-
7. Re: Solder: @Exact no @Qualifier
lightguard Jun 6, 2012 7:51 PM (in response to kennardconsulting)I don't think we added it. Honestly, these seems like you could do the same with @Typed(Class)
-
8. Re: Solder: @Exact no @Qualifier
kennardconsulting Jun 6, 2012 8:57 PM (in response to lightguard)Interesting. Could you explain how that works? I edited the Seam Solder example and tried:
@Inject @Typed(Greyhound.class) private Dog dog
But I still get:
WELD-001409 Ambiguous dependencies for type [Dog] with qualifiers [@Default] at injection point [[field] @Inject @Typed private org.jboss.solder.test.core.RaceTrack.dog]. Possible dependencies [[Managed Bean [class org.jboss.solder.test.core.BorderCollie] with qualifiers [@Any @Default @Named], Managed Bean [class org.jboss.solder.test.core.Greyhound] with qualifiers [@Any @Default @Named], Managed Bean [class org.jboss.solder.test.core.Dog] with qualifiers [@Any @Default @Named], Managed Bean [class org.jboss.solder.test.core.BetterGreyhound] with qualifiers [@Any @Default @Named]]]
-
9. Re: Solder: @Exact no @Qualifier
nishant_k123 Aug 8, 2012 12:06 AM (in response to kennardconsulting)so help me understand this. Seam 3 is going to be replaced in the near future with Delta spike and Delta spike from what i am reading and understand is going to have different features/api from Seam 3.
The past couple of months we have been looking to migrate out seam 2 projects to seam 3 and now this seems pointless since seam 3 is going away. It just seems that it makes sense to hold off on any upgrades until delta spike is matured. Am i understanding this correctly ?
what a mess!