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
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionafterCommit
(String expression) afterCommit
(String expression, String messageChannel) afterCommit
(String expression, MessageChannel messageChannel) afterCommit
(MessageChannel messageChannel) afterRollback
(String expression) afterRollback
(String expression, String messageChannel) afterRollback
(String expression, MessageChannel messageChannel) afterRollback
(MessageChannel messageChannel) beforeCommit
(String expression) beforeCommit
(String expression, String messageChannel) beforeCommit
(String expression, MessageChannel messageChannel) beforeCommit
(MessageChannel messageChannel) channelResolver
(DestinationResolver<MessageChannel> resolver) Specify theDestinationResolver
strategy to use.Class<?>
boolean
void
setBeanFactory
(BeanFactory beanFactory)
-
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
-
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>
-