basics:ex3
Intro Ex1 Ex2 Ex3 Ex4 Ex5 Ex6 Ex7
The Basics: Exercise 3
Add another advice to the Basics
aspect to print out a signature before the execution of all non-static methods of class Application
, except for the start
method.
- The signature pattern may contain modifiers (such as
public
) which can be negated (as in!public
). - You can combine different pointcuts as logic predicates using the operators
&&
,||
and!
.
Rerun the application and verify the output. The advice should trigger for the methods toString
, stop
and exec
only.
Continue with Exercise 4.
basics/ex3.txt · Last modified: 2021/02/05 13:49 by 127.0.0.1