In the Good Old Days, say late 2008, when the spec was a draft for WebBeans, it said<div><br></div><div><div>"If any class-level interceptor binding type is specified in XML, the interceptor binding annotations appearing on the implementation</div>
<div>class are ignored. The class-level interceptor bindings for the Web Bean include all interceptor bindings declared</div><div>using XML, together with all interceptor bindings of all stereotypes declared by the Web Bean.</div>
<div><br></div><div>Otherwise, if no class-level interceptor binding types are specified in XML, the interceptor binding annotations that appear</div><div>on the implementation class are used. The class-level interceptor bindings for the Web Bean include all interceptor bindings</div>
<div>declared by annotating the implementation class, together with all interceptor bindings of all stereotypes declared by</div><div>the Web Bean.</div><div><br></div><div>If any method-level interceptor binding type is specified in XML, the interceptor binding annotations appearing on that</div>
<div>method are ignored. The method-level interceptor bindings for that method include only the interceptor bindings declared</div><div>using XML.</div><div><br></div><div>Otherwise, if no method-level interceptor binding types are specified in XML, the interceptor binding annotations that appear</div>
<div>on that method are used. The method-level interceptor bindings for that method include all the interceptor bindings</div><div>declared by annotating the method."</div><div><br></div><div><br></div><br><div class="gmail_quote">
On Tue, Apr 6, 2010 at 7:56 AM, Stuart Douglas <span dir="ltr"><<a href="mailto:stuart@baileyroberts.com.au">stuart@baileyroberts.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I can't see any way to get information about the actual Bean that an interceptor is bound to.<br>
<br>
For example say I have a class:<br>
<br>
@Security("#{true}")<br>
class SomeClass<br>
{<br>
� ...<br>
}<br>
<br>
Another bean with the same class is wired up with XML:<br>
<br>
<t:SomeClass><br>
�<se:Security>#{false}</se:Security><br>
�....<br>
</t:SomeClass><br>
<br>
I cannot see any way for a security interceptor to know which Bean it is intercepting, and therefore figure out which annotation to use. Is there something I am missing here?<br>
<br>
Stuart<br>
_______________________________________________<br>
seam-dev mailing list<br>
<a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>---<br>Nik<br>
</div>