This shows you the differences between two versions of the page.
basics:ex1 [2007/02/23 16:33] bdefrain |
basics:ex1 [2021/02/05 13:49] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== The Basics: Exercise 1 ====== | ||
- | Create an aspect named '' | ||
- | |||
- | Inside, write an advice that prints out a string just before the execution of the '' | ||
- | |||
- | <code aspectj> | ||
- | before(): < | ||
- | System.out.println(" | ||
- | } | ||
- | </ | ||
- | |||
- | <note tip> | ||
- | You can employ the primitive pointcut '' | ||
- | </ | ||
- | |||
- | Rerun the application to see the output from your aspect. | ||
- | |||
- | ---- | ||
- | |||
- | Continue with [[basics: |