public class MethodBeforeAdviceInterceptor extends ObjectSE implements MethodInterceptor, BeforeAdvice, SerializableSE
MethodBeforeAdvice
をラップするインターセプター。AOP フレームワークによって内部的に使用されます。アプリケーション開発者は、このクラスを直接使用する必要はありません。
AfterReturningAdviceInterceptor
, ThrowsAdviceInterceptor
, 直列化された形式 コンストラクターと説明 |
---|
MethodBeforeAdviceInterceptor(MethodBeforeAdvice advice) 与えられたアドバイスのために新しい MethodBeforeAdviceInterceptor を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
ObjectSE | invoke(MethodInvocation mi) このメソッドを実装して、呼び出しの前後に追加の処理を実行します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public MethodBeforeAdviceInterceptor(MethodBeforeAdvice advice)
advice
- ラップする MethodBeforeAdvice@Nullable public ObjectSE invoke(MethodInvocation mi) throws ThrowableSE
MethodInterceptor
Joinpoint.proceed()
を呼び出すようにします。MethodInterceptor
の invoke
mi
- メソッド呼び出しジョインポイント Joinpoint.proceed()
の呼び出しの結果。インターセプターによってインターセプトされる可能性があります ThrowableSE
- インターセプターまたはターゲットオブジェクトが例外をスローする場合