HK2 MethodInterceptor with Jersey resource
问题 How can I set up an aop MethodInterceptor to work with Jersey resources? Here is what I've tried, following this documentation: Step 1 - InterceptionService public class MyInterceptionService implements InterceptionService { private final Provider<AuthFilter> authFilterProvider; @Inject public HK2MethodInterceptionService(Provider<AuthFilter> authFilterProvider) { this.authFilterProvider = authFilterProvider; } /** * Match any class. */ @Override public Filter getDescriptorFilter() { return