<div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 15, 2018 at 10:57 AM, Martin Kouba <span dir="ltr">&lt;<a href="mailto:mkouba@redhat.com" target="_blank">mkouba@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I think it could be a nice feature. Pls file a JIRA issue.</blockquote><div><br></div><div>Allright, I&#39;ll do that. Thx!</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
In order to get that bean, a bunch of quite verbose code is needed. I.e I came up with:<br>
<br>
HttpAuthenticationMechanism mechanism =<br>
     createRef(<br>
         beanManager.resolve(<br>
</blockquote>
<br></span>
This wouldn&#39;t work because BeanManager.resolve() attempts to resolve the ambiguities thus eliminate all non-alternative beans.</blockquote><div><br></div><div>It actually does seem to work, and I&#39;ve been using it for a while now.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
</blockquote>
<br></span>
This would not work - you would need to distinguish the original injection point.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
         return ...<br>
     }<br>
}<br>
<br>
Or reuse the @Delegate (perhaps with the @Alternative annotation)<br>
</blockquote>
<br></span>
-1 This might be confusing.<br></blockquote><div><br></div><div>Agreed with both, it was just a bit of brain storming. Not sure what would be a better name though. @Original? @NonAlternative?</div><div><br></div><div>Kind regards,</div><div>Arjan Tijms</div><div><br></div><div><br></div></div></div></div>