public class AnnotationTxAdviceManager
extends java.lang.Object
AnnotationTxAdvice
.Modifier and Type | Field and Description |
---|---|
protected AnnotationParser[] |
annotationParsers |
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(LeanJtxWorker jtxWorker) |
AnnotationTxAdviceManager(LeanJtxWorker jtxWorker,
java.lang.String scopePattern) |
AnnotationTxAdviceManager(LeanJtxWorker jtxWorker,
java.lang.String scopePattern,
JtxTransactionMode defaultTxMode) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends java.lang.annotation.Annotation>[] |
getAnnotations()
Returns current TX annotations.
|
JtxTransactionMode |
getDefaultTransactionMode()
Returns default transaction mode.
|
LeanJtxWorker |
getJtxWorker()
Returns tx worker.
|
JtxTransactionMode |
getTxMode(java.lang.Class type,
java.lang.String methodName,
java.lang.Class[] methodArgTypes,
java.lang.String unique)
Reads transaction mode from method annotation.
|
protected TransactionAnnotationValues |
readTransactionAnnotation(java.lang.reflect.Method method)
Finds TX annotation.
|
void |
registerAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation>[] annotations)
Registers new 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 AnnotationParser[] annotationParsers
public AnnotationTxAdviceManager(LeanJtxWorker jtxWorker)
public AnnotationTxAdviceManager(LeanJtxWorker jtxWorker, java.lang.String scopePattern)
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 java.lang.Class<? extends java.lang.annotation.Annotation>[] getAnnotations()
public void registerAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation>[] annotations)
protected TransactionAnnotationValues readTransactionAnnotation(java.lang.reflect.Method method)
Copyright © 2003-present Jodd Team