public class

AspectJAroundAdvice

extends AbstractAspectJAdvice
java.lang.Object
   ↳ org.springframework.aop.aspectj.AbstractAspectJAdvice
     ↳ org.springframework.aop.aspectj.AspectJAroundAdvice

Class Overview

Spring AOP around advice (MethodInterceptor) that wraps an AspectJ advice method. Exposes ProceedingJoinPoint.

Summary

[Expand]
Inherited Constants
From interface org.springframework.core.Ordered
[Expand]
Inherited Fields
From class org.springframework.aop.aspectj.AbstractAspectJAdvice
Public Constructors
AspectJAroundAdvice(Method aspectJAroundAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif)
Public Methods
Object invoke(MethodInvocation mi)
boolean isAfterAdvice()
boolean isBeforeAdvice()
Protected Methods
ProceedingJoinPoint lazyGetProceedingJoinPoint(ProxyMethodInvocation rmi)
Return the ProceedingJoinPoint for the current invocation, instantiating it lazily if it hasn't been bound to the thread already.
boolean supportsProceedingJoinPoint()
[Expand]
Inherited Methods
From class org.springframework.aop.aspectj.AbstractAspectJAdvice
From class java.lang.Object
From interface org.springframework.aop.aspectj.AspectJPrecedenceInformation
From interface org.springframework.core.Ordered

Public Constructors

public AspectJAroundAdvice (Method aspectJAroundAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif)

Public Methods

public Object invoke (MethodInvocation mi)

Throws
Throwable

public boolean isAfterAdvice ()

public boolean isBeforeAdvice ()

Protected Methods

protected ProceedingJoinPoint lazyGetProceedingJoinPoint (ProxyMethodInvocation rmi)

Return the ProceedingJoinPoint for the current invocation, instantiating it lazily if it hasn't been bound to the thread already.

Parameters
rmi the current Spring AOP ReflectiveMethodInvocation, which we'll use for attribute binding
Returns
  • the ProceedingJoinPoint to make available to advice methods

protected boolean supportsProceedingJoinPoint ()