@ApplicationScoped public class NarayanaTransactionManager extends DelegatingTransactionManager
DelegatingTransactionManager in application scope that uses the return value
that results from invoking the TransactionManager.transactionManager() method
as its backing implementation.TransactionManager.transactionManager()| Constructor and Description |
|---|
NarayanaTransactionManager(Event<Transaction> broadcaster)
Creates a new
NarayanaTransactionManager. |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Overrides the
DelegatingTransactionManager.begin() method
to additionally fire the return
value of the DelegatingTransactionManager.getTransaction() method immediately after a
transaction is begun. |
commit, getStatus, getTransaction, resume, rollback, setRollbackOnly, setTransactionTimeout, suspend@Inject public NarayanaTransactionManager(Event<Transaction> broadcaster)
NarayanaTransactionManager.broadcaster - an Event capable of firing Transaction instances; may be
nullbegin()public void begin() throws NotSupportedException, SystemException
DelegatingTransactionManager.begin() method
to additionally fire the return
value of the DelegatingTransactionManager.getTransaction() method immediately after a
transaction is begun.begin in interface TransactionManagerbegin in class DelegatingTransactionManagerNotSupportedException - if the thread is already
associated with a transaction and this TransactionManager
implementation does not support nested transactionsSystemException - if this TransactionManager
encounters an unexpected error conditionDelegatingTransactionManager.begin(),
TransactionCopyright © 2018–2019, microBean. All rights reserved.