Search code examples
javajersey-2.0hk2

Does HK2 support FieldInterceptor?


I have been digging and it looks like it doesn't support doing AOP on fields. I have looked at the examples here but the InterceptionService does not seem to support FieldInterceptor. I was looking to do some simple bean validation using a custom field annotation.

public Response createCustomer(@Validated final Customer customer) throws ProviderException {

}

Solution

  • HK2 Does not support Field interception at this time. If you would like us to add it please post a request for it here