public class AnnotationTxAdviceManager
extends java.lang.Object
AnnotationTxAdvice.| Modifier and Type | Field and Description |
|---|---|
protected TransactionAnnotation[] |
annotationInstances |
protected java.lang.Class<? extends java.lang.annotation.Annotation>[] |
annotations |
protected JtxTransactionMode |
defaultTransactionMode |
protected static java.lang.String |
JTXCTX_PATTERN_CLASS |
protected static java.lang.String |
JTXCTX_PATTERN_METHOD |
protected LeanJtxWorker |
jtxWorker |
protected java.lang.String |
scopePattern |
protected java.util.Map<java.lang.String,JtxTransactionMode> |
txmap |
| Constructor and Description |
|---|
AnnotationTxAdviceManager(JtxTransactionManager jtxManager) |
AnnotationTxAdviceManager(JtxTransactionManager jtxManager,
java.lang.String scopePattern) |
AnnotationTxAdviceManager(JtxTransactionManager jtxManager,
java.lang.String scopePattern,
JtxTransactionMode defaultTxMode) |
AnnotationTxAdviceManager(LeanJtxWorker jtxWorker) |
AnnotationTxAdviceManager(LeanJtxWorker jtxWorker,
java.lang.String scopePattern) |
AnnotationTxAdviceManager(LeanJtxWorker jtxWorker,
java.lang.String scopePattern,
JtxTransactionMode defaultTxMode) |
| Modifier and Type | Method and Description |
|---|---|
JtxTransactionMode |
getDefaultTransactionMode()
Returns default transaction mode.
|
LeanJtxWorker |
getJtxWorker()
Returns tx worker.
|
protected TransactionAnnotationData |
getTransactionAnnotation(java.lang.reflect.Method method)
Finds TX annotation.
|
JtxTransactionMode |
getTxMode(java.lang.Class type,
java.lang.String methodName,
java.lang.Class[] methodArgTypes,
java.lang.String unique)
Reads transaction mode from method annotation.
|
void |
registerAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation>... txAnnotations)
Registers tx annotations.
|
java.lang.String |
resolveScope(java.lang.Class type,
java.lang.String methodName)
Resolves tx scope from scope pattern.
|
protected static final java.lang.String JTXCTX_PATTERN_CLASS
protected static final java.lang.String JTXCTX_PATTERN_METHOD
protected final java.util.Map<java.lang.String,JtxTransactionMode> txmap
protected final LeanJtxWorker jtxWorker
protected final JtxTransactionMode defaultTransactionMode
protected final java.lang.String scopePattern
protected java.lang.Class<? extends java.lang.annotation.Annotation>[] annotations
protected TransactionAnnotation[] annotationInstances
public AnnotationTxAdviceManager(JtxTransactionManager jtxManager)
public AnnotationTxAdviceManager(LeanJtxWorker jtxWorker)
public AnnotationTxAdviceManager(JtxTransactionManager jtxManager, java.lang.String scopePattern)
public AnnotationTxAdviceManager(LeanJtxWorker jtxWorker, java.lang.String scopePattern)
public AnnotationTxAdviceManager(JtxTransactionManager jtxManager, java.lang.String scopePattern, JtxTransactionMode defaultTxMode)
public AnnotationTxAdviceManager(LeanJtxWorker jtxWorker, java.lang.String scopePattern, JtxTransactionMode defaultTxMode)
public LeanJtxWorker getJtxWorker()
public JtxTransactionMode getDefaultTransactionMode()
public java.lang.String resolveScope(java.lang.Class type,
java.lang.String methodName)
public JtxTransactionMode getTxMode(java.lang.Class type, java.lang.String methodName, java.lang.Class[] methodArgTypes, java.lang.String unique)
type - target classmethodName - target method name over which the transaction should be wrappedmethodArgTypes - types of arguments, used to find the methodunique - unique method fingerprint that contains return and arguments type informationpublic void registerAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation>... txAnnotations)
protected TransactionAnnotationData getTransactionAnnotation(java.lang.reflect.Method method)
Copyright © 2003-present Jodd Team