|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Interceptor
Intercepts one or more joinpoints.
The Interceptor
is a specific type of aspect, that contains only
one, well defined advice, the invoke
method. Because of that, an
Interceptor
is also referred to as an advice.
Method Summary | |
---|---|
String |
getName()
Returns the name of this interceptor. |
Object |
invoke(Invocation invocation)
The single advice contained in the Interceptor . |
Method Detail |
---|
String getName()
domain
.
domain
Object invoke(Invocation invocation) throws Throwable
Interceptor
.
invocation.invokeNext()
method (if there are not elements left to
be called in the chain, this method invokes the joinpoint itself). Not doing
so means halting the execution of the interceptor chain and, hence, avoiding
the execution of the joinpoint. This should be done only when the
interceptor must replace the joinpoint execution.
invocation
- represents the joinpoint to be intercepted
Invocation.invokeNext()
. In case this is the first
interceptor in the chain, this value will replace the
joinpoint return value in the basis system.
Throwable
- may throw any exceptions declared by the joinpoint itself.
If this exception is not declared and is not a runtime
exception, it will be encapsulated in a
RuntimeException
before being thrown to the basis
system.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |