<font size=2 face="sans-serif">Does this mean it functions as a Request
scoped bean even though it is a Dependent bean?</font>
<br>
<br><font size=2 face="sans-serif">Many thanks,<br>
Emily<br>
===========================<br>
Emily Jiang<br>
WebSphere Application Server, CDI &amp; MicroProfile Development Lead</font>
<br><font size=2 face="sans-serif">&nbsp;<br>
MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN<br>
Phone: &nbsp;+44 (0)1962 816278 &nbsp;Internal: 246278<br>
<br>
Email: emijiang@uk.ibm.com <br>
Lotus Notes: Emily Jiang/UK/IBM@IBMGB<br>
</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Martin Kouba &lt;mkouba@redhat.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Emily Jiang &lt;emijiang6@googlemail.com&gt;,
Weld-Dev List &lt;weld-dev@lists.jboss.org&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">04/09/2017 09:24</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [weld-dev]
Principal built-in bean</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">weld-dev-bounces@lists.jboss.org</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>It's @Dependent. But a special proxy is injected and
SPI <br>
org.jboss.weld.security.spi.SecurityServices.getPrincipal() is invoked
<br>
to obtain the current caller identity for every invocation of an <br>
injected reference.<br>
<br>
Martin<br>
<br>
Dne 1.9.2017 v 16:57 Emily Jiang napsal(a):<br>
&gt; A Java EE or embeddable EJB container must provide the following <br>
&gt; built-in beans, all of which<br>
&gt; have qualifier @Default:<br>
&gt; <br>
&gt; a bean with bean type javax.security.Principal, allowing injection
of a <br>
&gt; Principal<br>
&gt; representing the current caller identity.<br>
&gt; <br>
&gt; The spec does not say the scope of this bean. In Weld, what is the
scope <br>
&gt; for the Principal bean?<br>
&gt; <br>
&gt; -- <br>
&gt; Thanks<br>
&gt; Emily<br>
&gt; =================<br>
&gt; Emily Jiang<br>
&gt; ejiang@apache.org &lt;</font></tt><a href=mailto:ejiang@apache.org><tt><font size=2>mailto:ejiang@apache.org</font></tt></a><tt><font size=2>&gt;<br>
&gt; <br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; weld-dev mailing list<br>
&gt; weld-dev@lists.jboss.org<br>
&gt; </font></tt><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.jboss.org_mailman_listinfo_weld-2Ddev&amp;d=DwICAg&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=jt2y5_gH2oPaja8Vt6NzAZV-iEo6D2jiWeuVYs0H-1U&amp;m=jIKn0UxNi92JGBmOv2ycs3JoHrlVZC6ARxh7qsqJzE8&amp;s=7SXNuw9nF99r1RrRF97m4EBatYRmA9igLcjOExFx6ak&amp;e="><tt><font size=2>https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.jboss.org_mailman_listinfo_weld-2Ddev&amp;d=DwICAg&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=jt2y5_gH2oPaja8Vt6NzAZV-iEo6D2jiWeuVYs0H-1U&amp;m=jIKn0UxNi92JGBmOv2ycs3JoHrlVZC6ARxh7qsqJzE8&amp;s=7SXNuw9nF99r1RrRF97m4EBatYRmA9igLcjOExFx6ak&amp;e=</font></tt></a><tt><font size=2>
<br>
&gt; <br>
<br>
-- <br>
Martin Kouba<br>
Senior Software Engineer<br>
Red Hat, Czech Republic<br>
_______________________________________________<br>
weld-dev mailing list<br>
weld-dev@lists.jboss.org<br>
</font></tt><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.jboss.org_mailman_listinfo_weld-2Ddev&amp;d=DwICAg&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=jt2y5_gH2oPaja8Vt6NzAZV-iEo6D2jiWeuVYs0H-1U&amp;m=jIKn0UxNi92JGBmOv2ycs3JoHrlVZC6ARxh7qsqJzE8&amp;s=7SXNuw9nF99r1RrRF97m4EBatYRmA9igLcjOExFx6ak&amp;e="><tt><font size=2>https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.jboss.org_mailman_listinfo_weld-2Ddev&amp;d=DwICAg&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=jt2y5_gH2oPaja8Vt6NzAZV-iEo6D2jiWeuVYs0H-1U&amp;m=jIKn0UxNi92JGBmOv2ycs3JoHrlVZC6ARxh7qsqJzE8&amp;s=7SXNuw9nF99r1RrRF97m4EBatYRmA9igLcjOExFx6ak&amp;e=</font></tt></a><tt><font size=2>
<br>
<br>
</font></tt>
<br><font size=2 face="sans-serif"><br>
Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU<br>
</font>