Class CdiInterceptorWrapper


  • @Interceptor
    @Priority(4800)
    public class CdiInterceptorWrapper
    extends Object
    JAX-RS wrapper for Hibernate CDI bean validation interceptor. Since Jersey already executes validation on JAX-RS resources, Jersey registers this wrapper into CDI container so that JAX-RS components do not get validated twice.
    Author:
    Jakub Podlesak
    • Constructor Detail

      • CdiInterceptorWrapper

        @Inject
        public CdiInterceptorWrapper​(jakarta.enterprise.inject.spi.BeanManager beanManager)
    • Method Detail

      • validateMethodInvocation

        public Object validateMethodInvocation​(jakarta.interceptor.InvocationContext ctx)
                                        throws Exception
        Throws:
        Exception
      • validateConstructorInvocation

        public void validateConstructorInvocation​(jakarta.interceptor.InvocationContext ctx)
                                           throws Exception
        Throws:
        Exception