Class TransactionSynchronizationFactoryBean
java.lang.Object
org.springframework.integration.transaction.TransactionSynchronizationFactoryBean
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,FactoryBean<DefaultTransactionSynchronizationFactory>
public class TransactionSynchronizationFactoryBean extends Object implements FactoryBean<DefaultTransactionSynchronizationFactory>, BeanFactoryAware
The
FactoryBean
implementation (with Builder
style) to be used
from JavaConfig to populate DefaultTransactionSynchronizationFactory
bean.- Since:
- 4.0
- Author:
- Artem Bilan, Gary Russell
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TransactionSynchronizationFactoryBean()
-
Method Summary
-
Constructor Details
-
TransactionSynchronizationFactoryBean
public TransactionSynchronizationFactoryBean()
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
channelResolver
public TransactionSynchronizationFactoryBean channelResolver(DestinationResolver<MessageChannel> resolver)Specify theDestinationResolver
strategy to use. The default is a BeanFactoryChannelResolver.- Parameters:
resolver
- The channel resolver.- Returns:
- current TransactionSynchronizationFactoryBean
- Since:
- 4.1.3
-
beforeCommit
-
beforeCommit
public TransactionSynchronizationFactoryBean beforeCommit(String expression, String messageChannel) -
beforeCommit
-
beforeCommit
public TransactionSynchronizationFactoryBean beforeCommit(String expression, MessageChannel messageChannel) -
afterCommit
-
afterCommit
-
afterCommit
-
afterCommit
public TransactionSynchronizationFactoryBean afterCommit(String expression, MessageChannel messageChannel) -
afterRollback
-
afterRollback
public TransactionSynchronizationFactoryBean afterRollback(String expression, String messageChannel) -
afterRollback
-
afterRollback
public TransactionSynchronizationFactoryBean afterRollback(String expression, MessageChannel messageChannel) -
getObject
- Specified by:
getObject
in interfaceFactoryBean<DefaultTransactionSynchronizationFactory>
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<DefaultTransactionSynchronizationFactory>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceFactoryBean<DefaultTransactionSynchronizationFactory>
-