org.axonframework.contextsupport.spring
Class TransactionManagerFactoryBean

java.lang.Object
  extended by 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

Constructor Summary
TransactionManagerFactoryBean()
           
 
Method Summary
 TransactionManager getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setTransactionManager(Object transactionManager)
          Sets the actual transaction manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionManagerFactoryBean

public TransactionManagerFactoryBean()
Method Detail

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.