Class WeldTransactionServices

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

    public class WeldTransactionServices
    extends Object
    implements org.jboss.weld.transaction.spi.TransactionServices, org.jboss.msc.Service
    Service that implements welds TransactionServices

    This class is thread safe, and does not require a happens-before action between construction and usage

    Author:
    Stuart Douglas, Tomasz Adamski, Richard Opalka
    • Field Detail

      • SERVICE_NAME

        public static final org.jboss.msc.service.ServiceName SERVICE_NAME
    • Constructor Detail

    • Method Detail

      • getUserTransaction

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

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

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

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

        public void start​(org.jboss.msc.service.StartContext context)
        Specified by:
        start in interface org.jboss.msc.Service
      • stop

        public void stop​(org.jboss.msc.service.StopContext context)
        Specified by:
        stop in interface org.jboss.msc.Service