ehcache

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

java.lang.Object
  extended by net.sf.ehcache.transaction.manager.selector.Selector
      extended by net.sf.ehcache.transaction.manager.selector.ClassSelector
Direct Known Subclasses:
AtomikosSelector

public abstract class ClassSelector
extends Selector

Abstract selector for instanciating a class

Author:
Ludovic Orban

Constructor Summary
ClassSelector(String vendor, String classname)
          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

ClassSelector

public ClassSelector(String vendor,
                     String classname)
Constructor

Parameters:
vendor - the transaction manager vendor name
classname - the name of the class to instanciate
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-2015, Terracotta, Inc.