org.jencks.factory
Class TransactionManagerFactoryBean

java.lang.Object
  extended by org.jencks.factory.TransactionManagerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class TransactionManagerFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

This FactoryBean creates and configures the Geronimo implementation of the TransactionManager interface.

Author:
Thierry Templier
See Also:
UnrecoverableLog, HOWLLog

Constructor Summary
TransactionManagerFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 java.lang.Object getObject()
           
 java.lang.Class<?> getObjectType()
           
 java.lang.String getTransactionLogDir()
           
 org.apache.geronimo.transaction.manager.XidFactory getXidFactory()
           
 boolean isSingleton()
           
 void setDefaultTransactionTimeoutSeconds(int timeout)
          Set the default transaction timeout in second.
 void setResourceManagers(java.util.Collection<?> resourceManagers)
          Set the resource managers
 void setTransactionLog(org.apache.geronimo.transaction.manager.TransactionLog log)
          Set the transaction log for the transaction context manager.
 void setTransactionLogDir(java.lang.String transactionLogDir)
           
 void setXidFactory(org.apache.geronimo.transaction.manager.XidFactory xidFactory)
           
 
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 java.lang.Object getObject()
                           throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
java.lang.Exception

destroy

public void destroy()
             throws java.lang.Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
java.lang.Exception

getObjectType

public java.lang.Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

setDefaultTransactionTimeoutSeconds

public void setDefaultTransactionTimeoutSeconds(int timeout)
Set the default transaction timeout in second.


setTransactionLog

public void setTransactionLog(org.apache.geronimo.transaction.manager.TransactionLog log)
Set the transaction log for the transaction context manager.


getTransactionLogDir

public java.lang.String getTransactionLogDir()

setTransactionLogDir

public void setTransactionLogDir(java.lang.String transactionLogDir)

getXidFactory

public org.apache.geronimo.transaction.manager.XidFactory getXidFactory()

setXidFactory

public void setXidFactory(org.apache.geronimo.transaction.manager.XidFactory xidFactory)

setResourceManagers

public void setResourceManagers(java.util.Collection<?> resourceManagers)
Set the resource managers


afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception


Copyright © 2010 LogicBlaze, Inc.. All Rights Reserved.