当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
JBossCacheTransactionManagerAdapter - JBOSS Portal 2.2 API 英文版文档
org.jboss.portal.core.impl.tree
Class JBossCacheTransactionManagerAdapter
java.lang.Object
org.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.
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 |
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
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