<div dir="ltr">Hi,<div><br></div><div>Using a CDI portable extension, I&#39;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&#39;t such method.</div><div><br></div><div>In section 9 the spec says extensions could &quot;override the interceptor order defined by the @Priority annotation&quot; and refers to section 11.5.2 which introduces AfterTypeDiscovery#getInterceptors(). So I could use this to add my interceptor, but I don&#39;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>