@Deprecated public class TransactionManagerLocator extends java.lang.Object implements TransactionManagerFactory
| Modifier and Type | Field and Description |
|---|---|
private static TransactionManagerLocator |
instance
Deprecated.
The instance
|
private static java.lang.String |
JNDI_NAME
Deprecated.
The JNDI Name
|
private static org.jboss.logging.Logger |
log
Deprecated.
Logger
|
private javax.transaction.TransactionManager |
tm
Deprecated.
The transaction manager
|
| Modifier | Constructor and Description |
|---|---|
private |
TransactionManagerLocator()
Deprecated.
No external construction
|
| Modifier and Type | Method and Description |
|---|---|
static TransactionManagerLocator |
getInstance()
Deprecated.
Get the locator
|
javax.transaction.TransactionManager |
getTransactionManager()
Deprecated.
Get the transaction manager
|
javax.transaction.TransactionManager |
locate()
Deprecated.
Locate the transaction manager
|
javax.transaction.TransactionManager |
locate(boolean throwExceptionIfUnableToLocate)
Deprecated.
Locate the transaction manager
|
static javax.transaction.TransactionManager |
locateTransactionManager()
Deprecated.
Locate the transaction manager
|
static javax.transaction.TransactionManager |
locateTransactionManager(boolean throwExceptionIfUnableToLocate)
Deprecated.
Locate the transaction manager
|
protected javax.transaction.TransactionManager |
tryJNDI()
Deprecated.
Locate the transaction manager in the well known jndi binding for JBoss
|
protected javax.transaction.TransactionManager |
usePrivateAPI()
Deprecated.
Use the private api
|
private static final org.jboss.logging.Logger log
private static final java.lang.String JNDI_NAME
private static TransactionManagerLocator instance
private javax.transaction.TransactionManager tm
private TransactionManagerLocator()
public static TransactionManagerLocator getInstance()
public static javax.transaction.TransactionManager locateTransactionManager()
public static javax.transaction.TransactionManager locateTransactionManager(boolean throwExceptionIfUnableToLocate)
throwExceptionIfUnableToLocate - if true and transaction manager
cannot be located, a RuntimeException is thrown, otherwise null is
returned.public javax.transaction.TransactionManager getTransactionManager()
getTransactionManager in interface TransactionManagerFactorypublic javax.transaction.TransactionManager locate()
public javax.transaction.TransactionManager locate(boolean throwExceptionIfUnableToLocate)
throwExceptionIfUnableToLocate - if true and transaction manager
cannot be located, a RuntimeException is thrown, otherwise null is
returned.protected javax.transaction.TransactionManager tryJNDI()
protected javax.transaction.TransactionManager usePrivateAPI()
This is a fallback method for non JBossAS use.