ehcache

net.sf.ehcache.transaction.manager.selector
Class FactorySelector

java.lang.Object
  extended by net.sf.ehcache.transaction.manager.selector.Selector
      extended by net.sf.ehcache.transaction.manager.selector.FactorySelector
Direct Known Subclasses:
BitronixSelector, WeblogicSelector

public abstract class FactorySelector
extends Selector

Abstract selector for calling a factory method

Author:
Ludovic Orban

Constructor Summary
FactorySelector(String vendor, String factoryClassName, String factoryMethodName)
          Constructor
 
Method Summary
protected  TransactionManager doLookup()
          Lookup the transaction manager.
 
Methods inherited from class net.sf.ehcache.transaction.manager.selector.Selector
getTransactionManager, getVendor, registerResource, unregisterResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactorySelector

public FactorySelector(String vendor,
                       String factoryClassName,
                       String factoryMethodName)
Constructor

Parameters:
vendor - the transaction manager vendor name
factoryClassName - the class used to lookup the transaction manager
factoryMethodName - the method to be called on the class used to lookup the transaction manager
Method Detail

doLookup

protected TransactionManager doLookup()
Lookup the transaction manager.

Specified by:
doLookup in class Selector
Returns:
the transaction manager, or null if it could not be looked up.

ehcache

Copyright 2001-2014, Terracotta, Inc.