public class TransactionManagerLocator extends Object implements TransactionManagerFactory
Modifier and Type | Method and Description |
---|---|
static TransactionManagerLocator |
getInstance()
Get the locator
|
TransactionManager |
getTransactionManager()
Get the transaction manager
|
TransactionManager |
locate()
Locate the transaction manager
|
TransactionManager |
locate(boolean throwExceptionIfUnableToLocate)
Locate the transaction manager
|
static TransactionManager |
locateTransactionManager()
Locate the transaction manager
|
static TransactionManager |
locateTransactionManager(boolean throwExceptionIfUnableToLocate)
Locate the transaction manager
|
protected TransactionManager |
tryJNDI()
Locate the transaction manager in the well known jndi binding for JBoss
|
protected TransactionManager |
usePrivateAPI()
Use the private api
|
public static TransactionManagerLocator getInstance()
public static TransactionManager locateTransactionManager()
public static TransactionManager locateTransactionManager(boolean throwExceptionIfUnableToLocate)
throwExceptionIfUnableToLocate
- if true and transaction manager
cannot be located, a RuntimeException is thrown, otherwise null is
returned.public TransactionManager getTransactionManager()
getTransactionManager
in interface TransactionManagerFactory
public TransactionManager locate()
public TransactionManager locate(boolean throwExceptionIfUnableToLocate)
throwExceptionIfUnableToLocate
- if true and transaction manager
cannot be located, a RuntimeException is thrown, otherwise null is
returned.protected TransactionManager tryJNDI()
protected TransactionManager usePrivateAPI()
This is a fallback method for non JBossAS use.
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.