站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

JBossCacheTransactionManagerAdapter - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.impl.tree
Class JBossCacheTransactionManagerAdapter

java.lang.Object
  extended byorg.jboss.portal.core.impl.tree.JBossCacheTransactionManagerAdapter
All Implemented Interfaces:
TransactionManagerProvider

public class JBossCacheTransactionManagerAdapter
extends java.lang.Object
implements TransactionManagerProvider

Adapt JBoss Cache transaction manager lookup to our abstraction.


Field Summary
 
Fields inherited from interface org.jboss.portal.common.transaction.TransactionManagerProvider
JBOSS_PROVIDER
 
Constructor Summary
JBossCacheTransactionManagerAdapter(TransactionManagerLookup lookup)
           
 
Method Summary
 javax.transaction.TransactionManager getTransactionManager()
          Provide access to the transaction manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossCacheTransactionManagerAdapter

public JBossCacheTransactionManagerAdapter(TransactionManagerLookup lookup)
                                    throws java.lang.IllegalArgumentException
Parameters:
lookup - the jboss cache transaction manager lookup
Throws:
java.lang.IllegalArgumentException - if the lookup is null
Method Detail

getTransactionManager

public javax.transaction.TransactionManager getTransactionManager()
                                                           throws java.lang.Exception
Description copied from interface: TransactionManagerProvider
Provide access to the transaction manager.

Specified by:
getTransactionManager in interface TransactionManagerProvider
Returns:
return the transaction manager.
Throws:
java.lang.Exception - any exception that prevent to get the transaction manager