JBoss.org Community Documentation
According to the type of the joinpoint, there are specific context values available.
The context values are:
Table 3.1, “ Joinpoint Types Table ” shows what context values may be available depending on the joinpoint type.
Joinpoint | Pointcut Construct | Bean | ContextValues | ||||
---|---|---|---|---|---|---|---|
Invocation | JoinpointBean | Target | Caller | Arguments | Return Value | ||
field read |
read , field , all
|
FieldReadInvocation
|
FieldAccess
|
Yes | No | No | Yes |
field write |
write , field , all
|
FieldWriteInvocation
|
FieldAccess
|
Yes | No | Yes | No |
method execution |
execution , all
|
MethodInvocation
|
MethodExecution
|
Yes | No | Yes | Yes |
constructor execution |
execution
|
ConstructorInvocation
|
ConstructorExecution
|
No | No | Yes | Yes |
construction |
construction
|
ConstructionInvocation
|
ConstructorExecution
|
Yes | No | Yes | No |
method call |
call , within , withincode
|
CallerInvocation , MethodCalledByConstructorInvocation , MethodCalledByMethodInvocation
|
MethodCall , MethodCallByConstructor , MethodCallByMethod
|
Yes | Yes | Yes | Yes |
constructor call |
call , within , withincode
|
CallerInvocation , ConstructorCalledByConstructorInvocation , ConstructorCalledByMethodInvocation
|
ConstructorCall , ConstructorCallByConstructor , ConstructorCallByMethod
|
Yes | Yes | Yes | Yes |
has
and hasfield
are additional constructs, and therefore are not shown in this table. The
third column shows the specific type of joinpoint bean class that is used to represent that joinpoint. This column is split into two:
one for the Invocation
beans, the other one for the JoinPointBean
ones. The fourth column is
composed of four subcolumns, and it shows the context values avaialble for each joinpoint type. Notice that, on some of these values,
there are additional restrictions for their availability. Like, for example, there is no target on a static method execution.
Table 3.1. Joinpoint Types Table