Class TestTransactionServices

  • All Implemented Interfaces:
    org.jboss.weld.bootstrap.api.Service, org.jboss.weld.transaction.spi.TransactionServices

    public class TestTransactionServices
    extends Object
    implements org.jboss.weld.transaction.spi.TransactionServices
    SPI extension point of the Weld for integrate with transaction manager. If the interface is implemented by the deployment the Weld stops to show info message:

    WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.

    • Constructor Detail

      • TestTransactionServices

        public TestTransactionServices()
    • Method Detail

      • registerSynchronization

        public void registerSynchronization​(jakarta.transaction.Synchronization synchronizedObserver)
        Specified by:
        registerSynchronization in interface org.jboss.weld.transaction.spi.TransactionServices
      • isTransactionActive

        public boolean isTransactionActive()
        Specified by:
        isTransactionActive in interface org.jboss.weld.transaction.spi.TransactionServices
      • getUserTransaction

        public jakarta.transaction.UserTransaction getUserTransaction()
        Specified by:
        getUserTransaction in interface org.jboss.weld.transaction.spi.TransactionServices
      • cleanup

        public void cleanup()
        Specified by:
        cleanup in interface org.jboss.weld.bootstrap.api.Service