You want to capture all join points where the
reference at a join point is of a specific type.
Identifier]) pointcut. The
syntax of the
Identifier]) pointcut is:
pointcut <pointcut name>(
<any values to be picked up>) : this(
<type> or <identifier> or *);
Identifier]) pointcut examines the
this reference at the captured join point to
decide whether to invoke the associated advice and has five key
Identifier]) pointcut captures all join points
when the executing object is of the specified type.
Type definition parameter must resolve to a
valid class. This is not the same as a
TypePattern, where wildcards may be employed.
Identifier is used to examine the type of the
runtime object referenced to by
this and to expose
that object to the advice if required.
* wildcard allows you to state a valid
object must be pointed to by the
this reference at
the join point, but you are not interested in what type it is.
Join points that occur on exception handling do not have a value for
handler(TypePattern) pointcut, when they
handler(TypePattern) within any static
block of code including static class initialization specified using
and interestingly the object pre-initialization using the
do not have a value for the ...