当前页面:
在线文档首页 >
Spring Framework 1.2.9 API 文档英文版
AfterReturningAdvice (Spring Framework) - Spring Framework 1.2.9 API 文档英文版
org.springframework.aop
Interface AfterReturningAdvice
- All Superinterfaces:
- Advice
public interface AfterReturningAdvice
- extends Advice
After returning advice is invoked only on normal method return, not if an
exception is thrown. Such advice can see the return value, but cannot change it.
- Author:
- Rod Johnson
afterReturning
void afterReturning(Object returnValue,
Method method,
Object[] args,
Object target)
throws Throwable
- Callback after a given method successfully returned.
- 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 (c) 2002-2007 The Spring Framework Project.