tracing:ex1
This is an old revision of the document!
Tracing: Simple output
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()
.
Besides
thisJoinPoint.toString
, use primitive pointcut designators execution
(and optionally within
).
You might remember
thisJointPoint
from The Basics: Exercise 2.
With your aspect you should be able to pass the tests of suite tests.SimpleTraceOutput
.
After you have completed the exercise, remove your aspect from the build path; then continue with Exercise 2.
tracing/ex1.1223390778.txt.gz · Last modified: 2008/10/07 16:46 by bdefrain