public class TransactionSynchronizationFactoryBean extends Object implements FactoryBean<DefaultTransactionSynchronizationFactory>, BeanFactoryAware
FactoryBean
implementation (with Builder
style) to be used
from JavaConfig to populate DefaultTransactionSynchronizationFactory
bean.OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
TransactionSynchronizationFactoryBean() |
public TransactionSynchronizationFactoryBean()
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
public TransactionSynchronizationFactoryBean channelResolver(DestinationResolver<MessageChannel> resolver)
DestinationResolver
strategy to use.
The default is a BeanFactoryChannelResolver.resolver
- The channel resolver.public TransactionSynchronizationFactoryBean beforeCommit(String expression)
public TransactionSynchronizationFactoryBean beforeCommit(String expression, String messageChannel)
public TransactionSynchronizationFactoryBean beforeCommit(MessageChannel messageChannel)
public TransactionSynchronizationFactoryBean beforeCommit(String expression, MessageChannel messageChannel)
public TransactionSynchronizationFactoryBean afterCommit(String expression)
public TransactionSynchronizationFactoryBean afterCommit(String expression, String messageChannel)
public TransactionSynchronizationFactoryBean afterCommit(MessageChannel messageChannel)
public TransactionSynchronizationFactoryBean afterCommit(String expression, MessageChannel messageChannel)
public TransactionSynchronizationFactoryBean afterRollback(String expression)
public TransactionSynchronizationFactoryBean afterRollback(String expression, String messageChannel)
public TransactionSynchronizationFactoryBean afterRollback(MessageChannel messageChannel)
public TransactionSynchronizationFactoryBean afterRollback(String expression, MessageChannel messageChannel)
public DefaultTransactionSynchronizationFactory getObject()
getObject
in interface FactoryBean<DefaultTransactionSynchronizationFactory>
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<DefaultTransactionSynchronizationFactory>
public boolean isSingleton()
isSingleton
in interface FactoryBean<DefaultTransactionSynchronizationFactory>