org.datanucleus.jta
Class FactoryBasedTransactionManagerLocator
java.lang.Object
org.datanucleus.jta.FactoryBasedTransactionManagerLocator
- All Implemented Interfaces:
- TransactionManagerLocator
- Direct Known Subclasses:
- BTMTransactionManagerLocator, JOnASTransactionManagerLocator, JOTMTransactionManagerLocator, WebSphereTransactionManagerLocator
public abstract class FactoryBasedTransactionManagerLocator
- extends Object
- implements TransactionManagerLocator
TransactionManager locator using a factory class.
All extending classes must provide the method getFactoryClass() returning the class of a factory
that has a method "getTransactionManager" returning the manager object.
|
Field Summary |
protected static Localiser |
LOCALISER
Localisation utility for output messages |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOCALISER
protected static final Localiser LOCALISER
- Localisation utility for output messages
FactoryBasedTransactionManagerLocator
public FactoryBasedTransactionManagerLocator()
getFactoryClass
protected abstract Class getFactoryClass(ClassLoaderResolver clr)
- Accessor for the factory class to use for this locator.
- Parameters:
clr - ClassLoader resolver
- Returns:
- The class
getTransactionManager
public TransactionManager getTransactionManager(ClassLoaderResolver clr)
- Method to return the TransactionManager.
- Specified by:
getTransactionManager in interface TransactionManagerLocator
- Returns:
- The TransactionManager
Copyright © 2012. All Rights Reserved.