User Tools

Site Tools


basics:ex3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
basics:ex3 [2007/02/23 15:46] – created bdefrainbasics:ex3 [2021/02/05 13:49] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +[[basics:intro|Intro]]
 +[[basics:ex1|Ex1]]
 +[[basics:ex2|Ex2]]
 +[[basics:ex3|Ex3]]
 +[[basics:ex4|Ex4]]
 +[[basics:ex5|Ex5]]
 +[[basics:ex6|Ex6]]
 +[[basics:ex7|Ex7]]
 ====== The Basics: Exercise 3 ====== ====== 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.
  
 +<note tip>
 +  * 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 ''!''.
 +</note>
 +
 +Rerun the application and verify the output. The advice should trigger for the methods ''toString'', ''stop'' and ''exec'' only.
 +
 +----
 +
 +Continue with [[basics:ex4|Exercise 4]].
basics/ex3.1172241981.txt.gz · Last modified: 2007/02/23 15:46 by bdefrain