public interface TransactionAnnotationParser
AnnotationTransactionAttributeSource
は、Spring 自体の Transactional
、JTA 1.2 の Transactional
SE または EJB3 の TransactionAttribute
EE などの特定のアノテーション型をサポートするために、そのようなパーサーに委譲します。AnnotationTransactionAttributeSource
, SpringTransactionAnnotationParser
, Ejb3TransactionAnnotationParser
, JtaTransactionAnnotationParser
修飾子と型 | メソッドと説明 |
---|---|
TransactionAttribute | parseTransactionAnnotation(AnnotatedElementSE element) このパーサーが理解できるアノテーション型に基づいて、指定されたメソッドまたはクラスのトランザクション属性を解析します。 |
@Nullable TransactionAttribute parseTransactionAnnotation(AnnotatedElementSE element)
これは基本的に、既知のトランザクションアノテーションを Spring のメタデータ属性クラスに解析します。メソッド / クラスがトランザクションでない場合、null
を返します。
element
- アノテーション付きのメソッドまたはクラス null
AnnotationTransactionAttributeSource.determineTransactionAttribute(java.lang.reflect.AnnotatedElement)