クラス AspectJAroundAdvice
java.lang.ObjectSE
org.springframework.aop.aspectj.AbstractAspectJAdvice
org.springframework.aop.aspectj.AspectJAroundAdvice
- 実装されているすべてのインターフェース:
SerializableSE、Advice、Interceptor、MethodInterceptor、AspectJPrecedenceInformation、Ordered
public class AspectJAroundAdvice
extends AbstractAspectJAdvice
implements MethodInterceptor, SerializableSE
AspectJ アドバイスメソッドをラップする Spring AOP アドバイス(MethodInterceptor)。ProceedingJoinPoint を公開します。
- 導入:
- 2.0
- 作成者:
- Rod Johnson, Juergen Hoeller
- 関連事項:
フィールドのサマリー
クラス org.springframework.aop.aspectj.AbstractAspectJAdvice から継承されたフィールド
aspectJAdviceMethod, JOIN_POINT_KEYインターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクターの概要
コンストラクターコンストラクター説明AspectJAroundAdvice(MethodSE aspectJAroundAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif) メソッドのサマリー
修飾子と型メソッド説明このメソッドを実装して、呼び出しの前後に追加の処理を実行します。booleanこれがアフターアドバイスかどうかを返します。booleanこれが事前アドバイスかどうかを返します。protected org.aspectj.lang.ProceedingJoinPoint現在の呼び出しの ProceedingJoinPoint を返し、まだスレッドにバインドされていない場合は遅延してインスタンス化します。protected booleanクラス org.springframework.aop.aspectj.AbstractAspectJAdvice から継承されたメソッド
argBinding, buildSafePointcut, calculateArgumentBindings, createParameterNameDiscoverer, currentJoinPoint, getAspectClassLoader, getAspectInstanceFactory, getAspectJAdviceMethod, getAspectName, getDeclarationOrder, getDiscoveredReturningGenericType, getDiscoveredReturningType, getDiscoveredThrowingType, getJoinPoint, getJoinPointMatch, getJoinPointMatch, getOrder, getPointcut, invokeAdviceMethod, invokeAdviceMethod, invokeAdviceMethodWithGivenArgs, setArgumentNames, setArgumentNamesFromStringArray, setAspectName, setDeclarationOrder, setReturningName, setReturningNameNoCheck, setThrowingName, setThrowingNameNoCheck, toString
コンストラクターの詳細
AspectJAroundAdvice
public AspectJAroundAdvice(MethodSE aspectJAroundAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif)
メソッドの詳細
isBeforeAdvice
public boolean isBeforeAdvice()インターフェースからコピーされた説明:AspectJPrecedenceInformationこれが事前アドバイスかどうかを返します。- 次で指定:
- インターフェース
AspectJPrecedenceInformationのisBeforeAdvice
isAfterAdvice
public boolean isAfterAdvice()インターフェースからコピーされた説明:AspectJPrecedenceInformationこれがアフターアドバイスかどうかを返します。- 次で指定:
- インターフェース
AspectJPrecedenceInformationのisAfterAdvice
supportsProceedingJoinPoint
protected boolean supportsProceedingJoinPoint()- オーバーライド:
- クラス
AbstractAspectJAdviceのsupportsProceedingJoinPoint
invoke
インターフェースからコピーされた説明:MethodInterceptorこのメソッドを実装して、呼び出しの前後に追加の処理を実行します。正しい実装としては、必ずJoinpoint.proceed()を呼び出すようにします。- 次で指定:
- インターフェース
MethodInterceptorのinvoke - パラメーター:
mi- メソッド呼び出しジョインポイント- 戻り値:
Joinpoint.proceed()の呼び出しの結果。インターセプターによってインターセプトされる可能性があります- 例外:
ThrowableSE- インターセプターまたはターゲットオブジェクトが例外をスローする場合
lazyGetProceedingJoinPoint
protected org.aspectj.lang.ProceedingJoinPoint lazyGetProceedingJoinPoint(ProxyMethodInvocation rmi) 現在の呼び出しの ProceedingJoinPoint を返し、まだスレッドにバインドされていない場合は遅延してインスタンス化します。- パラメーター:
rmi- 属性バインディングに使用する現在の Spring AOP ReflectiveMethodInvocation- 戻り値:
- ProceedingJoinPoint を使用してアドバイスメソッドを利用可能にする