<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Gotcha, makes sense.</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="color:rgb(33,33,33); font-size:15px; margin:0px"><br>
</div>
<p></p>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Martin Kouba <mkouba@redhat.com><br>
<b>Sent:</b> Monday, March 6, 2017 3:28 AM<br>
<b>To:</b> John Ament; cdi-dev<br>
<b>Subject:</b> Re: [cdi-dev] Is InterceptionFactory a built in bean?</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Dne 5.3.2017 v 19:20 John Ament napsal(a):<br>
> All,<br>
><br>
><br>
> I don't see it explicitly called out in the spec, but should I be able<br>
> to do this? CDI.current().select(InterceptionFactory.class).get() -<br>
> e.g. is it a a bean, or can I only access it as a producer method or via<br>
> BeanManager.createInterceptionFactory() ?<br>
<br>
There is a built-in bean of type InterceptionFactory (as defined in <br>
11.7. The InterceptionFactory interface), but you can only inject it in <br>
a param of a producer method:<br>
<br>
"If an injection point of type InterceptionFactory and qualifier <br>
@Default exists and is not a parameter of a producer method, the <br>
container automatically detects the problem and treats it as a <br>
definition error."<br>
<br>
><br>
><br>
> Also, I found in the 2.0 beta 1 spec the following:<br>
><br>
><br>
> public interface InterceptionFactory<T> {<br>
> InterceptionProxyFactory<T> ignoreFinalMethods();<br>
><br>
> I believe InterceptionProxyFactory should be replaced<br>
> with InterceptionFactory, if we haven't already fixed this.<br>
><br>
><br>
> John<br>
><br>
><br>
> ------------------------------------------------------------------------<br>
> NOTICE: This e-mail message and any attachments may contain<br>
> confidential, proprietary, and/or privileged information which should be<br>
> treated accordingly. If you are not the intended recipient, please<br>
> notify the sender immediately by return e-mail, delete this message, and<br>
> destroy all physical and electronic copies. Thank you.<br>
><br>
><br>
> _______________________________________________<br>
> cdi-dev mailing list<br>
> cdi-dev@lists.jboss.org<br>
> <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" id="LPlnk515996">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
><br>
> Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a 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.<br>
><br>
<br>
-- <br>
Martin Kouba<br>
Senior Software Engineer<br>
Red Hat, Czech Republic<br>
</div>
</span></font></div>
</div>
<hr>
NOTICE: This e-mail message and any attachments may contain confidential, proprietary, and/or privileged information which should be treated accordingly. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this
message, and destroy all physical and electronic copies. Thank you.
</body>
</html>