org.apache.tapestry5.ioc
Interface MethodAdvice
- All Known Implementing Classes:
- LoggingAdvice
public interface MethodAdvice
For Tapestry IoC, Aspects provide a limited amount of advise, i.e., advising method invocations. That's the only join
point available (method invocations of service interface methods); full AOP systems such as AspectJ can do much, much
more, such as advising field access and even object construction.
- See Also:
AspectDecorator
|
Method Summary |
void |
advise(Invocation invocation)
Allows the Aspect to advise the invocation. |
advise
void advise(Invocation invocation)
- Allows the Aspect to advise the invocation. The Aspect is free to inspect and even replace parameters. Most
Aspects will then invoke
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.
- Parameters:
invocation - to advise
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.