<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Christian,<br>
    <br>
    yes, the specializing producer inherits all the qualifiers of the
    specialized producer. Furthermore, if the specialized producer had
    defined a name, this would have been inherited as well (even without
    explicit declaration on <font face="monospace, monospace">MyExtendedProducer.produce()</font>).
    See
    <a class="moz-txt-link-freetext" href="http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#direct_and_indirect_specialization">http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#direct_and_indirect_specialization</a>
    for details.<br>
    <br>
    Jozef<br>
    <br>
    <div class="moz-cite-prefix">On 04/14/2015 06:13 AM, Christian
      Kaltepoth wrote:<br>
    </div>
    <blockquote
cite="mid:CAEXeC6yYV-NmJ35M0v8d8icjtM57Zw20EuF92Bq2jVc80EPpzQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hey all,
        <div><br>
        </div>
        <div>I've a question regarding specializing qualified producer
          methods. It would be great to get your opinion on this.</div>
        <div><br>
        </div>
        <div>Imaging this producer method:</div>
        <div><br>
        </div>
        <div><font face="monospace, monospace">  public class MyProducer
            {</font></div>
        <div><font face="monospace, monospace">    @Produces</font></div>
        <div><font face="monospace, monospace">    @MyQualifier</font></div>
        <div><font face="monospace, monospace">    public Something
            produce() {</font></div>
        <div><font face="monospace, monospace">      // ...</font></div>
        <div><font face="monospace, monospace">    }</font></div>
        <div><font face="monospace, monospace">  }</font></div>
        <div><br>
        </div>
        <div>Now imagine the producer method is specialized like this:</div>
        <div><br>
        </div>
        <font face="monospace, monospace">  public class
          MyExtendedProducer extends MyProducer {<br>
              @Override<br>
        </font><span style="font-family:monospace,monospace">   
          @Produces</span><br style="font-family:monospace,monospace">
        <font face="monospace, monospace">    @Specializes<br>
              public Something produce() {<br>
                // ...<br>
              }<br>
            }</font>
        <div><br>
        </div>
        <div>Please not that I NOT added <font face="monospace,
            monospace">@MyQualifier</font> to the specializing producer
          method.</div>
        <div><br>
        </div>
        <div>Now for this injection point:</div>
        <div><br>
        </div>
        <div><font face="monospace, monospace">  @Inject</font></div>
        <div><font face="monospace, monospace">  @MyQualifier</font></div>
        <div><font face="monospace, monospace">  private Something
            something;</font></div>
        <div><br>
        </div>
        <div>What is expected to happen according to the spec? Will the
          specialized producer be used or not?</div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div><br>
        </div>
        <div>Christian</div>
        <div><br>
        </div>
        <div>
          <div><br>
          </div>
          -- <br>
          <div class="gmail_signature">
            <div>Christian Kaltepoth</div>
            <div>Blog: <a moz-do-not-send="true"
                href="http://blog.kaltepoth.de/" target="_blank">http://blog.kaltepoth.de/</a></div>
            <div>Twitter: <a moz-do-not-send="true"
                href="http://twitter.com/chkal" target="_blank">http://twitter.com/chkal</a></div>
            <div>GitHub: <a moz-do-not-send="true"
                href="https://github.com/chkal" target="_blank">https://github.com/chkal</a></div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
cdi-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/cdi-dev">https://lists.jboss.org/mailman/listinfo/cdi-dev</a>

Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a class="moz-txt-link-freetext" href="http://www.apache.org/licenses/LICENSE-2.0.html">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.</pre>
    </blockquote>
    <br>
  </body>
</html>