<div dir="ltr">Ok, I&#39;ve created <a href="https://issues.jboss.org/browse/CDI-419">https://issues.jboss.org/browse/CDI-419</a> to keep track of it.<div><br></div><div>Thanks,</div><div><br></div><div>--Gunnar</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014/2/4 Pete Muir <span dir="ltr">&lt;<a href="mailto:pmuir@redhat.com" target="_blank">pmuir@redhat.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Agreed, we can tidy up the language here.<br>
<div class="HOEnZb"><div class="h5"><br>
On 4 Feb 2014, at 16:53, Gunnar Morling &lt;<a href="mailto:gunnar@hibernate.org">gunnar@hibernate.org</a>&gt; wrote:<br>
<br>
&gt; Hi Martin,<br>
&gt;<br>
&gt; 2014/2/4 Martin Kouba &lt;<a href="mailto:mkouba@redhat.com">mkouba@redhat.com</a>&gt;<br>
&gt; Hi Gunnar,<br>
&gt;<br>
&gt; I believe it is required.<br>
&gt;<br>
&gt; See the spec section 11.1 The Bean interface:<br>
&gt; &quot;getTypes(), getQualifiers(), getScope(), getName() and getStereotypes()<br>
&gt; must return the bean types, qualifiers, scope type, bean name and<br>
&gt; stereotypes of the bean, as defined in Chapter 2&quot;<br>
&gt;<br>
&gt; I think the sentence you&#39;re referencing is rather about class-based<br>
&gt; beans, not custom beans.<br>
&gt;<br>
&gt; Yes, that&#39;s the question.<br>
&gt;<br>
&gt; It doesn&#39;t explicitly say it&#39;s about class-based beans only, so it can be perceived as applying to custom beans as well. Then I&#39;d understand the &quot;as defined in Chapter 2&quot; from section 11.1 as &quot;it&#39;s not required to explicitly return @Any&quot;.<br>

&gt;<br>
&gt; But it&#39;s not very clear.<br>
&gt;<br>
&gt; Right, some clarification would be nice. In my particular case I&#39;ll just add a literal for @Any, but it&#39;s easy to forget to do so when writing a PE, so it might be useful to require a CDI implementation to automatically add that qualifier for custom beans if missing.<br>

&gt;<br>
&gt; M<br>
&gt;<br>
&gt;<br>
&gt; Dne 4.2.2014 09:54, Gunnar Morling napsal(a):<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m registering a custom Bean implementation using a portable extension.<br>
&gt; &gt; Injection of this bean using the @Any qualifier fails unless I<br>
&gt; &gt; explicitly add this qualifier in the getQualifiers() implementation of<br>
&gt; &gt; my bean.<br>
&gt; &gt;<br>
&gt; &gt; Now the spec says in 2.3.1:<br>
&gt; &gt;<br>
&gt; &gt;     &quot;Every bean has the built-in qualifier @Any, even if it does not<br>
&gt; &gt; explicitly declare this qualifier [...]&quot;<br>
&gt; &gt;<br>
&gt; &gt; Based on that, I had expected that I&#39;m not required to add this<br>
&gt; &gt; qualifier to my custom bean implementation. Or am I misinterpreting the<br>
&gt; &gt; spec here?<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt;<br>
&gt; &gt; --Gunnar<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; cdi-dev mailing list<br>
&gt; &gt; <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; cdi-dev mailing list<br>
&gt; <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
<br>
</div></div></blockquote></div><br></div>