public enum SurroundingTransactionDetectorMethodInterceptor extends EnumSE<SurroundingTransactionDetectorMethodInterceptor> implements MethodInterceptor
MethodInterceptor
は、トランザクションがすでに実行されているかどうかを検出し、その事実を isSurroundingTransactionActive()
を介して公開します。後続のインターセプター自体がトランザクションを作成する可能性があるが、ダウンストリームコンポーネントが、呼び出しがプロキシに入る前にトランザクションが実行されていたかどうかを確認する必要がある場合に役立ちます。列挙型定数と説明 |
---|
INSTANCE |
修飾子と型 | メソッドと説明 |
---|---|
ObjectSE | invoke(MethodInvocation invocation) |
boolean | isSurroundingTransactionActive() メソッド呼び出しがリポジトリプロキシに入る前にトランザクションがアクティブであったかどうかを返します。 |
static SurroundingTransactionDetectorMethodInterceptor | valueOf(StringSE name) 指定された名前を持つこの型の列挙定数を返します。 |
static SurroundingTransactionDetectorMethodInterceptor[] | values() この列挙型の定数を含む配列を、宣言されている順序で返します。 |
cloneSE, compareToSE, equalsSE, finalizeSE, getDeclaringClassSE, hashCodeSE, nameSE, ordinalSE, toStringSE, valueOfSE
getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public static final SurroundingTransactionDetectorMethodInterceptor INSTANCE
public static SurroundingTransactionDetectorMethodInterceptor[] values()
for (SurroundingTransactionDetectorMethodInterceptor c : SurroundingTransactionDetectorMethodInterceptor.values()) System.out.println(c);
public static SurroundingTransactionDetectorMethodInterceptor valueOf(StringSE name)
name
- 返される列挙定数の名前。IllegalArgumentExceptionSE
- この列挙型に指定された名前の定数がない場合 NullPointerExceptionSE
- 引数が null の場合 public boolean isSurroundingTransactionActive()
@Nullable public ObjectSE invoke(MethodInvocation invocation) throws ThrowableSE
MethodInterceptor
の invoke
ThrowableSE
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.