org.kuali.rice.core.jta
Class UserTransactionFactoryBean
java.lang.Object
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultUserTransaction
private UserTransaction defaultUserTransaction
jndiTemplate
private org.springframework.jndi.JndiTemplate jndiTemplate
UserTransactionFactoryBean
public UserTransactionFactoryBean()
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.