JBoss.org Community Documentation
These advices are more lightweight in the JBoss AOP framework, since they do not wrap a joinpoint,
avoiding the creation of the Invocation
objects per joinpoint execution.
Instead of Invocation
objects, JBoss AOP provides JoinPointBean beans
for these advices. As described in Section 3.10.1, “Joinpoint Beans”, these beans contain all information regarding a joinpoint,
like an Invocation
would do. However, since JoinPointBean
objects are not used on around
advice types, they do not provide proceeding methods, like invokeNext()
. They also do not allow you to
attach metadata for a particular invocation.
The rules for before, after, after-throwing and finally advices are quite similar. All of them can have zero or more annotated advice parameters in their signature, which will be described in the next subsection.