org.kuali.rice.core.jta
Class UserTransactionFactoryBean

java.lang.Object
  extended by org.kuali.rice.core.jta.UserTransactionFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean

public class UserTransactionFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean

Factory bean that supplies a UserTransaction object from the the current context (i.e. plugin, embedding webapp) Config object map if defined therein (under the Config.USER_TRANSACTION key), from JNDI if Config#USER_TRANSACTION_JNDI is defined, or from a default declaratively assigned in containing bean factory.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
private  UserTransaction defaultUserTransaction
           
private  org.springframework.jndi.JndiTemplate jndiTemplate
           
 
Constructor Summary
UserTransactionFactoryBean()
           
 
Method Summary
 org.springframework.jndi.JndiTemplate getJndiTemplate()
           
 Object getObject()
           
 Class getObjectType()
           
 boolean isSingleton()
           
 void setDefaultUserTransaction(UserTransaction userTransaction)
           
 void setJndiTemplate(org.springframework.jndi.JndiTemplate jndiTemplate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultUserTransaction

private UserTransaction defaultUserTransaction

jndiTemplate

private org.springframework.jndi.JndiTemplate jndiTemplate
Constructor Detail

UserTransactionFactoryBean

public UserTransactionFactoryBean()
Method Detail

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
Exception

getObjectType

public 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

setDefaultUserTransaction

public void setDefaultUserTransaction(UserTransaction userTransaction)

getJndiTemplate

public org.springframework.jndi.JndiTemplate getJndiTemplate()

setJndiTemplate

public void setJndiTemplate(org.springframework.jndi.JndiTemplate jndiTemplate)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.