Class CacheReflectionTmLookup
- java.lang.Object
-
- org.apache.ignite.cache.jta.reflect.CacheReflectionTmLookup
-
- All Implemented Interfaces:
CacheTmLookup
public class CacheReflectionTmLookup extends Object implements CacheTmLookup
Implementation ofCacheTmLookup
interface that attempts to obtain JTA manager by calling static method on the class.
-
-
Constructor Summary
Constructors Constructor Description CacheReflectionTmLookup()
Creates uninitialized reflection TM lookup.CacheReflectionTmLookup(String cls, String mtd)
Creates generic TM lookup with given class and method name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClassName()
Gets class name to use.String
getMethodName()
Gets method name.javax.transaction.TransactionManager
getTm()
Gets Transaction Manager (TM).void
setClassName(String cls)
Sets class name to use.void
setMethodName(String mtd)
Sets method name.
-
-
-
Method Detail
-
getClassName
public String getClassName()
Gets class name to use.- Returns:
- Class name to use.
-
setClassName
public void setClassName(String cls)
Sets class name to use.- Parameters:
cls
- Class name to use.
-
getMethodName
public String getMethodName()
Gets method name.- Returns:
- Method name to use.
-
setMethodName
public void setMethodName(String mtd)
Sets method name.- Parameters:
mtd
- Method name to use.
-
getTm
public javax.transaction.TransactionManager getTm() throws IgniteException
Gets Transaction Manager (TM).- Specified by:
getTm
in interfaceCacheTmLookup
- Returns:
- TM or
null
if TM cannot be looked up. - Throws:
IgniteException
- In case of error.
-
-