JBoss Transaction 7.0.0 SPI 7.0.0.Final-redhat-2

org.jboss.tm
Class TransactionManagerLocator

java.lang.Object
  extended by org.jboss.tm.TransactionManagerLocator
All Implemented Interfaces:
TransactionManagerFactory

Deprecated.

@Deprecated
public class TransactionManagerLocator
extends Object
implements TransactionManagerFactory

Locates the transaction manager.

Version:
$Revision: 37459 $
Author:
Adrian Brock, Galder Zamarreno

Method Summary
static TransactionManagerLocator getInstance()
          Deprecated. Get the locator
 TransactionManager getTransactionManager()
          Deprecated. Get the transaction manager
 TransactionManager locate()
          Deprecated. Locate the transaction manager
 TransactionManager locate(boolean throwExceptionIfUnableToLocate)
          Deprecated. Locate the transaction manager
static TransactionManager locateTransactionManager()
          Deprecated. Locate the transaction manager
static TransactionManager locateTransactionManager(boolean throwExceptionIfUnableToLocate)
          Deprecated. Locate the transaction manager
protected  TransactionManager tryJNDI()
          Deprecated. Locate the transaction manager in the well known jndi binding for JBoss
protected  TransactionManager usePrivateAPI()
          Deprecated. Use the private api
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TransactionManagerLocator getInstance()
Deprecated. 
Get the locator

Returns:
the locator

locateTransactionManager

public static TransactionManager locateTransactionManager()
Deprecated. 
Locate the transaction manager

Returns:
the transaction manager

locateTransactionManager

public static TransactionManager locateTransactionManager(boolean throwExceptionIfUnableToLocate)
Deprecated. 
Locate the transaction manager

Parameters:
throwExceptionIfUnableToLocate - if true and transaction manager cannot be located, a RuntimeException is thrown, otherwise null is returned.
Returns:
the transaction manager

getTransactionManager

public TransactionManager getTransactionManager()
Deprecated. 
Get the transaction manager

Specified by:
getTransactionManager in interface TransactionManagerFactory
Returns:
the transaction manager

locate

public TransactionManager locate()
Deprecated. 
Locate the transaction manager

Returns:
the transaction manager

locate

public TransactionManager locate(boolean throwExceptionIfUnableToLocate)
Deprecated. 
Locate the transaction manager

Parameters:
throwExceptionIfUnableToLocate - if true and transaction manager cannot be located, a RuntimeException is thrown, otherwise null is returned.
Returns:
the transaction manager

tryJNDI

protected TransactionManager tryJNDI()
Deprecated. 
Locate the transaction manager in the well known jndi binding for JBoss

Returns:
the tm from jndi

usePrivateAPI

protected TransactionManager usePrivateAPI()
Deprecated. 
Use the private api

This is a fallback method for non JBossAS use.

Returns:
the tm from the private api

JBoss Transaction 7.0.0 SPI 7.0.0.Final-redhat-2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.