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.