org.datanucleus.jta
Class FactoryBasedTransactionManagerLocator

java.lang.Object
  extended by org.datanucleus.jta.FactoryBasedTransactionManagerLocator
All Implemented Interfaces:
TransactionManagerLocator
Direct Known Subclasses:
JOnASTransactionManagerLocator, JOTMTransactionManagerLocator, WebSphereTransactionManagerLocator

public abstract class FactoryBasedTransactionManagerLocator
extends java.lang.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
 
Constructor Summary
FactoryBasedTransactionManagerLocator()
           
 
Method Summary
protected abstract  java.lang.Class getFactoryClass(ClassLoaderResolver clr)
          Accessor for the factory class to use for this locator.
 javax.transaction.TransactionManager getTransactionManager(ClassLoaderResolver clr)
          Method to return the TransactionManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALISER

protected static final Localiser LOCALISER
Localisation utility for output messages

Constructor Detail

FactoryBasedTransactionManagerLocator

public FactoryBasedTransactionManagerLocator()
Method Detail

getFactoryClass

protected abstract java.lang.Class getFactoryClass(ClassLoaderResolver clr)
Accessor for the factory class to use for this locator.

Parameters:
clr - ClassLoader resolver
Returns:
The class

getTransactionManager

public javax.transaction.TransactionManager getTransactionManager(ClassLoaderResolver clr)
Method to return the TransactionManager.

Specified by:
getTransactionManager in interface TransactionManagerLocator
Returns:
The TransactionManager


Copyright © 2011. All Rights Reserved.