クラス AspectJAroundAdvice

java.lang.ObjectSE
org.springframework.aop.aspectj.AbstractAspectJAdvice
org.springframework.aop.aspectj.AspectJAroundAdvice
実装されたすべてのインターフェース:
SerializableSEAdviceInterceptorMethodInterceptorAspectJPrecedenceInformationOrdered

public class AspectJAroundAdvice extends AbstractAspectJAdvice implements MethodInterceptor, SerializableSE
AspectJ アドバイスメソッドをラップする Spring AOP アドバイス(MethodInterceptor)。ProceedingJoinPoint を公開します。
導入:
2.0
作成者:
Rod Johnson, Juergen Hoeller
関連事項:
  • コンストラクターの詳細

  • メソッドの詳細

    • isBeforeAdvice

      public boolean isBeforeAdvice()
      インターフェースからコピーされた説明: AspectJPrecedenceInformation
      これが事前アドバイスかどうかを返します。
      次で指定:
      インターフェース AspectJPrecedenceInformationisBeforeAdvice 
    • isAfterAdvice

      public boolean isAfterAdvice()
      インターフェースからコピーされた説明: AspectJPrecedenceInformation
      これがアフターアドバイスかどうかを返します。
      次で指定:
      インターフェース AspectJPrecedenceInformationisAfterAdvice 
    • supportsProceedingJoinPoint

      protected boolean supportsProceedingJoinPoint()
      オーバーライド:
      クラス AbstractAspectJAdvicesupportsProceedingJoinPoint 
    • invoke

      @Nullable public ObjectSE invoke(MethodInvocation mi) throws ThrowableSE
      インターフェースからコピーされた説明: MethodInterceptor
      このメソッドを実装して、呼び出しの前後に追加の処理を実行します。正しい実装としては、必ず Joinpoint.proceed() を呼び出すようにします。
      次で指定:
      インターフェース MethodInterceptorinvoke 
      パラメーター:
      mi - メソッド呼び出しジョインポイント
      戻り値:
      Joinpoint.proceed() の呼び出しの結果。インターセプターによってインターセプトされる可能性があります
      例外:
      ThrowableSE - インターセプターまたはターゲットオブジェクトが例外をスローする場合
    • lazyGetProceedingJoinPoint

      protected org.aspectj.lang.ProceedingJoinPoint lazyGetProceedingJoinPoint(ProxyMethodInvocation rmi)
      現在の呼び出しの ProceedingJoinPoint を返し、まだスレッドにバインドされていない場合は遅延してインスタンス化します。
      パラメーター:
      rmi - 属性バインディングに使用する現在の Spring AOP ReflectiveMethodInvocation
      戻り値:
      ProceedingJoinPoint を使用してアドバイスメソッドを利用可能にする