org.beanlet.transaction
Class UserTransactionFactoryBeanlet

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

public final class UserTransactionFactoryBeanlet
extends Object
implements FactoryBeanlet<UserTransaction>

Factory beanlet for a UserTransaction.

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

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


Constructor Summary
UserTransactionFactoryBeanlet(UserTransaction userTransaction)
          Use constructor depenency injection to create a new UserTransactionFactoryBeanlet instance.
 
Method Summary
 UserTransaction getObject()
          Returns the user transaction 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

UserTransactionFactoryBeanlet

public UserTransactionFactoryBeanlet(UserTransaction userTransaction)
Use constructor depenency injection to create a new UserTransactionFactoryBeanlet instance.

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

getObject

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

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


Copyright © 2006-2012. All Rights Reserved.