<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Gunnar,<br>
<br>
this is not possible. You can only enable the interceptor by
adding it to AfterTypeDiscovery#getInterceptors() relatively to
other interceptors.<br>
<br>
Jozef<br>
<br>
On 01/15/2014 10:56 AM, Gunnar Morling wrote:<br>
</div>
<blockquote
cite="mid:CADGJaX_UddOFBgpc8-dvW1TBQihN6sg1imyo3PSNz59QMBoFGw@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>Using a CDI portable extension, I'm registering a custom
bean which represents an interceptor (by implementing the
javax.enterprise.inject.spi.Interceptor interface).</div>
<div><br>
</div>
<div>My question now is how to specify the priority of that
interceptor. Intuitively I had expected a method such as
Interceptor#getPriority(), but there isn't such method.</div>
<div><br>
</div>
<div>In section 9 the spec says extensions could "override the
interceptor order defined by the @Priority annotation" and
refers to section 11.5.2 which introduces
AfterTypeDiscovery#getInterceptors(). So I could use this to
add my interceptor, but I don't see how I could specify the
priority while doing so.</div>
<div><br>
</div>
<div>How can this be achieved?</div>
<div><br>
</div>
<div>Many thanks,</div>
<div><br>
</div>
<div>--Gunnar</div>
<div><br>
</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></pre>
</blockquote>
<br>
</body>
</html>