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 |
setCustomTxManager(TransactionManager customTxManager) |
void |
setMuleContext(MuleContext context) |
void |
setTxManagerFactory(TransactionManagerFactory txManagerFactory) |
public TransactionManager getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<TransactionManager>
Exception
public 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 setCustomTxManager(TransactionManager customTxManager)
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.