public class TransactionManagerFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<TransactionManager>, MuleContextAware
FactoryBean adapter for the configured TransactionManagerFactory.
Creates a reference to the TransactionManager configured on the MuleContext. This is useful when you need to inject the
TransactionManager into other objects such as XA data Sources.
This will first look for a single TransactionManagerFactory and use it to build the TransactionManager.
If no TransactionManagerFactory is found, then it will look for TransactionManager instances.| Constructor and Description |
|---|
TransactionManagerFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
TransactionManager |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setMuleContext(MuleContext context) |
void |
setTxManagerFactory(TransactionManagerFactory txManagerFactory) |
public TransactionManager getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<TransactionManager>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<TransactionManager>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<TransactionManager>public void setTxManagerFactory(TransactionManagerFactory txManagerFactory)
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwareCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.