User Tools

Site Tools


tracing:ex1

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
tracing:ex1 [2008/10/06 16:31]
bdefrain
tracing:ex1 [2008/10/07 16:46]
bdefrain
Line 3: Line 3:
 **Task:** Pass the suite ''tests.SimpleTraceOutput''. **Task:** Pass the suite ''tests.SimpleTraceOutput''.
  
-Write an aspect to log the execution of all public methods in the ''figures'' package. Write a message into the log panel with the static ''write(String)'' method from the ''Log'' class. This message should be the exact string representation of the join point, as obtained through ''thisJoinPoint.toString()''.+Write an aspect to log the execution of all public methods in the ''figures'' package (not its subpackages). Write a message into the log panel with the static ''write(String)'' method from the ''Log'' class. This message should be the exact string representation of the join point, as obtained through ''thisJoinPoint.toString()''.
  
 <note tip> <note tip>
-Besides ''thisJoinPoint.toString'', use primitive pointcut designators ''execution'' and ''within''.+Besides ''thisJoinPoint.toString'', use primitive pointcut designators ''execution'' (and optionally ''within'').
 </note> </note>
  
tracing/ex1.txt ยท Last modified: 2021/02/05 13:55 (external edit)