users@hk2.java.net

Method Interception with HK2 and Guice

From: <cdr53x_at_free.fr>
Date: Mon, 10 Mar 2014 14:17:54 +0000 (UTC)

Hi,

I'm quite new to Jersey and HK2, and I'm trying to make the Guice/HK2
Bridge work in order to port my existing inejction and AOP code.
Using the bridge as documented on
https://hk2.java.net/guice-bridge.html (bi - directional bridge) I can
have Guice injection working in my rest resource code, and that's
really nice !
However the method interception does not get activated on the REST
resource level ( it works fine for all the low level, pure guice
injected code )
Is there
a) something special to if I'd like the Guice interceptors to work on
the rest resource level methods ?
b) a working sample of the HK2 standard interception service ( tried to
add the interceptor service in my
https://hk2.java.net/2.3.0-b01/aop-example.html but without success ,
my rest resource methods keeps ingnoring my custom annotations.
Thanks for any clues & pointers