org.axonframework.contextsupport.spring
Class TransactionManagerFactoryBean
java.lang.Object
org.axonframework.contextsupport.spring.TransactionManagerFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean<TransactionManager>
public class TransactionManagerFactoryBean
- extends Object
- implements org.springframework.beans.factory.FactoryBean<TransactionManager>
Factory Bean that wraps transaction manager instances with an implementation of TransactionManager
, if
necessary (and possible). This allows for transparent and interchangeable use of PlatformTransactionManager and
TransactionManager
- Since:
- 2.0
- Author:
- Allard Buijze
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionManagerFactoryBean
public TransactionManagerFactoryBean()
getObject
public TransactionManager getObject()
throws Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean<TransactionManager>
- Throws:
Exception
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean<TransactionManager>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean<TransactionManager>
setTransactionManager
public void setTransactionManager(Object transactionManager)
- Sets the actual transaction manager. If necessary (and possible) it will be wrapped with an implementation of
TransactionManager.
- Parameters:
transactionManager
- The actual transaction manager
Copyright © 2010-2016. All Rights Reserved.