Class TransactionalExceptionInterceptorProvider

  • All Implemented Interfaces:
    jakarta.enterprise.inject.spi.Extension, ComponentProvider, org.glassfish.jersey.spi.ComponentProvider

    @Priority(199)
    public class TransactionalExceptionInterceptorProvider
    extends Object
    implements ComponentProvider, jakarta.enterprise.inject.spi.Extension
    Jersey CDI extension that provides means to retain WebApplicationException thrown from JAX-RS components implemented as CDI transactional beans. This is to avoid the WebApplicationException from being masked with TransactionalException. Jersey will try to restore the original JAX-RS exception using TransactionalExceptionMapper.
    Author:
    Jakub Podlesak
    • Constructor Detail

      • TransactionalExceptionInterceptorProvider

        public TransactionalExceptionInterceptorProvider()
    • Method Detail

      • initialize

        public void initialize​(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
        Specified by:
        initialize in interface org.glassfish.jersey.spi.ComponentProvider
      • bind

        public boolean bind​(Class<?> component,
                            Set<Class<?>> providerContracts)
        Specified by:
        bind in interface org.glassfish.jersey.spi.ComponentProvider
      • done

        public void done()
        Specified by:
        done in interface org.glassfish.jersey.spi.ComponentProvider