Hi Gunnar,
this is not possible. You can only enable the interceptor by adding it
to AfterTypeDiscovery#getInterceptors() relatively to other interceptors.
Jozef
On 01/15/2014 10:56 AM, Gunnar Morling wrote:
Hi,
Using a CDI portable extension, I'm registering a custom bean which
represents an interceptor (by implementing the
javax.enterprise.inject.spi.Interceptor interface).
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.
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.
How can this be achieved?
Many thanks,
--Gunnar
_______________________________________________
cdi-dev mailing list
cdi-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/cdi-dev