public interface TransactionAttributeSourceTransactionInterceptor がメタデータの取得に使用する戦略インターフェース。実装は、構成、ソースレベルのメタデータ属性(Java 5 アノテーションなど)、またはその他の場所から、トランザクション属性をソースする方法を知っています。
TransactionAspectSupport.setTransactionAttributeSource(org.springframework.transaction.interceptor.TransactionAttributeSource), TransactionProxyFactoryBean.setTransactionAttributeSource(org.springframework.transaction.interceptor.TransactionAttributeSource), AnnotationTransactionAttributeSource| 修飾子と型 | メソッドと説明 |
|---|---|
TransactionAttribute | getTransactionAttribute(MethodSE method, ClassSE<?> targetClass) 指定されたメソッドのトランザクション属性を返します。メソッドが非トランザクションの場合は null を返します。 |
@Nullable TransactionAttribute getTransactionAttribute(MethodSE method, @Nullable ClassSE<?> targetClass)
null を返します。method - イントロスペクトする方法 targetClass - ターゲットクラス (null の場合があります。この場合、メソッドの宣言クラスを使用する必要があります)null