Top Description Fields Constructors Methods
net.sf.ehcache.transaction.manager.selector

public abstract Class FactorySelector

extends Selector
Class Inheritance
Known Direct Subclasses
net.sf.ehcache.transaction.manager.selector.WeblogicSelector, net.sf.ehcache.transaction.manager.selector.BitronixSelector
Imports
org.slf4j.Logger, .LoggerFactory, java.lang.reflect.InvocationTargetException, .Method, javax.transaction.TransactionManager

Abstract selector for calling a factory method
Author
Ludovic Orban

Field Summary

Modifier and TypeField and Description
private final String
private final String
private static final Logger

Constructor Summary

AccessConstructor and Description
public
FactorySelector(String
the transaction manager vendor name
vendor
,
String
the class used to lookup the transaction manager
factoryClassName
,
String
the method to be called on the class used to lookup the transaction manager
factoryMethodName
)

Constructor

Method Summary

Modifier and TypeMethod and Description
protected TransactionManager
doLookup()

Implements abstract net.sf.ehcache.transaction.manager.selector.Selector.doLookup.

Lookup the transaction manager.
Inherited from net.sf.ehcache.transaction.manager.selector.Selector:
getTransactionManagergetVendorregisterResourceunregisterResource

Field Detail

factoryClassNameback to summary
private final String factoryClassName
factoryMethodNameback to summary
private final String factoryMethodName
LOGback to summary
private static final Logger LOG

Constructor Detail

FactorySelectorback to summary
public FactorySelector(String vendor, String factoryClassName, String factoryMethodName)

Constructor

Parameters
vendor:String

the transaction manager vendor name

factoryClassName:String

the class used to lookup the transaction manager

factoryMethodName:String

the method to be called on the class used to lookup the transaction manager

Method Detail

doLookupback to summary
protected TransactionManager doLookup()

Implements abstract net.sf.ehcache.transaction.manager.selector.Selector.doLookup.

Doc from net.sf.ehcache.transaction.manager.selector.Selector.doLookup.

Lookup the transaction manager.

Returns:TransactionManager

the transaction manager, or null if it could not be looked up.

Annotations
@Override