public class CompositeTransactionAttributeSource extends ObjectSE implements TransactionAttributeSource, SerializableSE
TransactionAttributeSource インスタンスの特定の配列を反復処理する複合 TransactionAttributeSource 実装。| コンストラクターと説明 |
|---|
CompositeTransactionAttributeSource(TransactionAttributeSource... transactionAttributeSources) 指定されたソースの新しい CompositeTransactionAttributeSource を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
TransactionAttribute | getTransactionAttribute(MethodSE method, ClassSE<?> targetClass) 指定されたメソッドのトランザクション属性を返します。メソッドが非トランザクションの場合は null を返します。 |
TransactionAttributeSource[] | getTransactionAttributeSources() この CompositeTransactionAttributeSource が結合する TransactionAttributeSource インスタンスを返します。 |
boolean | isCandidateClass(ClassSE<?> targetClass) 指定されたクラスが、この TransactionAttributeSource のメタデータ形式のトランザクション属性の候補であるかどうかを判別します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic CompositeTransactionAttributeSource(TransactionAttributeSource... transactionAttributeSources)
transactionAttributeSources - 組み合わせる TransactionAttributeSource インスタンス public final TransactionAttributeSource[] getTransactionAttributeSources()
public boolean isCandidateClass(ClassSE<?> targetClass)
TransactionAttributeSourceTransactionAttributeSource のメタデータ形式のトランザクション属性の候補であるかどうかを判別します。 このメソッドが false を返す場合、指定されたクラスのメソッドは TransactionAttributeSource.getTransactionAttribute(java.lang.reflect.Method, java.lang.Class<?>) イントロスペクションのために走査されません。false を返すことは、影響を受けないクラスの最適化です。一方、true は、クラスが特定のクラスの各メソッドに対して個別に完全にイントロスペクションする必要があることを意味します。
TransactionAttributeSource の isCandidateClass targetClass - イントロスペクトするクラス false。それ以外の場合は true。デフォルトの実装は true を返し、通常のイントロスペクションにつながります。@Nullable public TransactionAttribute getTransactionAttribute(MethodSE method, @Nullable ClassSE<?> targetClass)
TransactionAttributeSourcenull を返します。TransactionAttributeSource の getTransactionAttribute method - イントロスペクトする方法 targetClass - ターゲットクラス (null の場合があります。この場合、メソッドの宣言クラスを使用する必要があります)null