User Tools

Site Tools


caching:ex3

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
caching:ex3 [2007/02/26 18:37] – created bdefraincaching:ex3 [2008/10/07 14:09] bdefrain
Line 3: Line 3:
 **Task:** Pass ''tests.Invalidation1''. **Task:** Pass ''tests.Invalidation1''.
  
-While caching in this way does save computation, it will lead to incorrect bounding boxes if a ''Group'' is ever moved. Write another aspect that invalidates (i.e. clears) the cache whenever the ''move()'' method of ''Group'' is called.+While caching in this way does save computation, it will lead to incorrect bounding boxes if a ''Group'' is ever moved. Write another **separate** aspect that invalidates (i.e. clears) the cache whenever the ''move()'' method of ''Group'' is called.
  
 <note tip> <note tip>
-Employ an additional ''before'' advice.+Employ an additional ''before'' advice. The original aspect that manages the cached data should provide functionality to clear the cache. 
 + 
 +To reach the aspect instance, you might need to use the ''aspectOf'' method.
 </note> </note>
  
Line 13: Line 15:
 ---- ----
  
-Remove the invalidation aspect from the build path and continue with [[caching:ex3|Exercise 3]].+Remove the invalidation aspect from the build path and continue with [[caching:ex4|Exercise 4]].
caching/ex3.txt · Last modified: 2021/02/05 13:51 by 127.0.0.1