<div dir="ltr">I am okay with starting out with wildcards only, *unless* anyone can make a convincing argument that this will make it more difficult to support specific type mappings later on.<div><br></div><div>Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 16, 2017 at 9:35 AM, Gunnar Morling <span dir="ltr">&lt;<a href="mailto:gunnar@hibernate.org" target="_blank">gunnar@hibernate.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Another one from the open issues list: Should we allow extractors to<br>
be defined for specific parameterized types, e.g.:<br>
<br>
    public class ListOfIntegerExtractor implements<br>
ValueExtractor&lt;List&lt;@<wbr>ExtractedValue Integer&gt;&gt; { ... }<br>
<br>
    public class ListOfStringExtractor implements<br>
ValueExtractor&lt;List&lt;@<wbr>ExtractedValue String&gt;&gt; { ... }<br>
<br>
Currently, a value extractor may only mark a wild-card type parameter<br>
with @ExtractedValue:<br>
<br>
    public class ListOfStringExtractor implements<br>
ValueExtractor&lt;List&lt;@<wbr>ExtractedValue ?&gt;&gt; { ... }<br>
<br>
The reason being to cut down on complexity and the lack of any use<br>
case. Is there any scenario where one would want to extract a list of<br>
Integer differently than a list String?<br>
<br>
I would thus only support wildcard type parameters in extractor<br>
definitions, unless someone else can see a compelling use case for the<br>
more liberal model. Note we always can relax the requirement in a<br>
future revision.<br>
<br>
Thanks,<br>
<br>
--Gunnar<br>
______________________________<wbr>_________________<br>
beanvalidation-dev mailing list<br>
<a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.<wbr>jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/<wbr>beanvalidation-dev</a><br>
</blockquote></div><br></div>