User Tools

Site Tools


basics:ex3

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
basics:ex3 [2007/02/23 16:11]
bdefrain
basics:ex3 [2021/02/05 13:49] (current)
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 methods of ''Application'', //except// for the ''start'' method.+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> <note tip>
-You can combine different pointcuts as logic predicates using the operators ''&&'', ''||'' and ''!''.+  * 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> </note>
  
-Rerun the application and verify the output.+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]]. Continue with [[basics:ex4|Exercise 4]].
basics/ex3.1172243482.txt.gz · Last modified: 2007/02/23 16:11 by bdefrain