public class JtaTransactionAnnotationParser extends ObjectSE implements TransactionAnnotationParser, SerializableSE
Transactional
SE アノテーションを解析するための戦略の実装。コンストラクターと説明 |
---|
JtaTransactionAnnotationParser() |
修飾子と型 | メソッドと説明 |
---|---|
boolean | equals(ObjectSE other) |
int | hashCode() |
boolean | isCandidateClass(ClassSE<?> targetClass) 指定されたクラスが、この TransactionAnnotationParser のアノテーション形式のトランザクション属性の候補であるかどうかを判別します。 |
TransactionAttribute | parseTransactionAnnotation(AnnotatedElementSE element) このパーサーが理解できるアノテーション型に基づいて、指定されたメソッドまたはクラスのトランザクション属性を解析します。 |
protected TransactionAttribute | parseTransactionAnnotation(AnnotationAttributes attributes) |
TransactionAttribute | parseTransactionAnnotation(TransactionalSE ann) |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public boolean isCandidateClass(ClassSE<?> targetClass)
TransactionAnnotationParser
TransactionAnnotationParser
のアノテーション形式のトランザクション属性の候補であるかどうかを判別します。 このメソッドが false
を返す場合、指定されたクラスのメソッドは #parseTransactionAnnotation
イントロスペクションのためにトラバースされません。false
を返すことは影響を受けないクラスの最適化ですが、true
は単に、クラスが特定のクラスの各メソッドに対して個別に完全にイントロスペクトされる必要があることを意味します。
TransactionAnnotationParser
の isCandidateClass
targetClass
- 内省するクラス false
(クラスがクラスまたはメソッドレベルでトランザクションアノテーションを持たないことがわかっている場合)。それ以外の場合は true
。デフォルトの実装は true
を返し、通常のイントロスペクションが行われます。@Nullable public TransactionAttribute parseTransactionAnnotation(AnnotatedElementSE element)
TransactionAnnotationParser
これは基本的に、既知のトランザクションアノテーションを Spring のメタデータ属性クラスに解析します。メソッド / クラスがトランザクションでない場合、null
を返します。
TransactionAnnotationParser
の parseTransactionAnnotation
element
- アノテーション付きのメソッドまたはクラス null
AnnotationTransactionAttributeSource.determineTransactionAttribute(java.lang.reflect.AnnotatedElement)
public TransactionAttribute parseTransactionAnnotation(TransactionalSE ann)
protected TransactionAttribute parseTransactionAnnotation(AnnotationAttributes attributes)
public int hashCode()
ObjectSE
の hashCodeSE