当前页面:
在线文档首页 >
Spring Framework 2.0.5 API 文档英文版
AspectJAfterReturningAdvice (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版
org.springframework.aop.aspectj
Class AspectJAfterReturningAdvice
java.lang.Object
org.springframework.aop.aspectj.AbstractAspectJAdvice
org.springframework.aop.aspectj.AspectJAfterReturningAdvice
- All Implemented Interfaces:
- Advice, AfterAdvice, AfterReturningAdvice, AspectJPrecedenceInformation, Ordered
public class AspectJAfterReturningAdvice
- extends AbstractAspectJAdvice
- implements AfterReturningAdvice, AfterAdvice
Spring AOP advice wrapping an AspectJ after-returning advice method.
- Since:
- 2.0
- Author:
- Rod Johnson, Juergen Hoeller
Methods inherited from class org.springframework.aop.aspectj.AbstractAspectJAdvice |
argBinding, buildSafePointcut, calculateArgumentBindings, createParameterNameDiscoverer, currentJoinPoint, getAspectInstanceFactory, getAspectJAdviceMethod, getAspectName, getDeclarationOrder, getDiscoveredReturningType, getDiscoveredThrowingType, getJoinPoint, getJoinPointMatch, getJoinPointMatch, getOrder, getPointcut, invokeAdviceMethod, invokeAdviceMethod, invokeAdviceMethodWithGivenArgs, setArgumentNames, setArgumentNamesFromStringArray, setAspectName, setDeclarationOrder, setReturningNameNoCheck, setThrowingName, setThrowingNameNoCheck, toString |
AspectJAfterReturningAdvice
public AspectJAfterReturningAdvice(Method aspectJBeforeAdviceMethod,
AspectJExpressionPointcut pointcut,
AspectInstanceFactory aif)
isBeforeAdvice
public boolean isBeforeAdvice()
- Description copied from interface:
AspectJPrecedenceInformation
- Return whether this is a before advice.
- Specified by:
isBeforeAdvice
in interface AspectJPrecedenceInformation
isAfterAdvice
public boolean isAfterAdvice()
- Description copied from interface:
AspectJPrecedenceInformation
- Return whether this is an after advice.
- Specified by:
isAfterAdvice
in interface AspectJPrecedenceInformation
setReturningName
public void setReturningName(String name)
- Overrides:
setReturningName
in class AbstractAspectJAdvice
afterReturning
public void afterReturning(Object returnValue,
Method method,
Object[] args,
Object target)
throws Throwable
- Description copied from interface:
AfterReturningAdvice
- Callback after a given method successfully returned.
- Specified by:
afterReturning
in interface AfterReturningAdvice
- Parameters:
returnValue
- the value returned by the method, if anymethod
- method being invokedargs
- arguments to the methodtarget
- target of the method invocation. May be null
.
- Throws:
Throwable
- if this object wishes to abort the call.
Any exception thrown will be returned to the caller if it's
allowed by the method signature. Otherwise the exception
will be wrapped as a runtime exception.
Copyright © 2002-2007 The Spring Framework.