org.beanlet.transaction
Class TransactionManagerFactoryBeanlet

java.lang.Object
  extended by org.beanlet.transaction.TransactionManagerFactoryBeanlet
All Implemented Interfaces:
FactoryBeanlet<TransactionManager>

public final class TransactionManagerFactoryBeanlet
extends Object
implements FactoryBeanlet<TransactionManager>

Factory beanlet for a TransactionManager.

The following example demonstrates how to create a factory using a transaction manager from the JNDI tree:

 <beanlet type="org.beanlet.transaction.TransactionManagerFactoryBeanlet">
   <wiring value="BY_NAME"/>
   <inject constructor="true" name="java:comp/TransactionManager"/>
 </beanlet>
 


Constructor Summary
TransactionManagerFactoryBeanlet(TransactionManager transactionManager)
          Use constructor depenency injection to create a new TransactionManagerFactoryBeanlet instance.
 
Method Summary
 TransactionManager getObject()
          Returns the transaction manager instance that was passed to the constructor of this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionManagerFactoryBeanlet

public TransactionManagerFactoryBeanlet(TransactionManager transactionManager)
Use constructor depenency injection to create a new TransactionManagerFactoryBeanlet instance.

Parameters:
transactionManager - transaction manager instance to be returned by this factory's getObject method.
Method Detail

getObject

public TransactionManager getObject()
Returns the transaction manager instance that was passed to the constructor of this factory.

Specified by:
getObject in interface FactoryBeanlet<TransactionManager>
Returns:
beanlet instance.


Copyright © 2006-2012. All Rights Reserved.