yes, the issue is you pass through the interface so the interface doesn't
have the interceptor binding

i mailed OWB list asking if we should support it providing a patch, waiting
for some answers....

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/4/3 ZhongGuan <[email protected]>

> "Well pby fix it in OWB if not already done on trunk "
> Where can I see some infors?
>
> I want to ask a little bit more about method  signature capararison in
> interceptor.
> I test many cases,
> If the type of injected field is Interface, the inteceptor does not work.
> But if I change the type of injected field to AbstractImpl or Impl.
> the inteceptor is OK.
>
> In my opinion.
> There is a method signature capararison in CDI interceptor,
> one is the annotated method. the other is the called method.
>
> When I use interface for the Type of injected field, the called method is
> in
> the interface.
> and CDI will compare the method signature between this method and the
> method
> in AbstractImpl(in my case).
> because of the generic. so they are not same.
>
> And if the Type of the injected field is AbstractImpl or Impl.
> the method that the bean called is from AbstractImpl, so the two method
> signatures are same.
> So the Intecetor works.
>
> my understanding is right?
>
>
>
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/JAX-RS-with-CDI-interceptor-IN-Tomee-tp4661885p4661947.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to