MethodAdvice
.public interface MethodAdvice
AspectDecorator
Modifier and Type | Method and Description |
---|---|
void |
advise(Invocation invocation)
Deprecated.
Allows the Aspect to advise the invocation.
|
void advise(Invocation invocation)
Invocation.proceed()
. The Aspect may then inspect and
replace any checked thrown exceptions. Some Aspects (for example, caching) may selectively decide to bypass the
invocation entirely, and instead invoke some other method or otherwise set a return value or thrown exception.invocation
- to adviseCopyright © 2003-2012 The Apache Software Foundation.