User Tools

Site Tools


caching:ex3

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
caching:ex3 [2007/02/26 18:38] bdefraincaching:ex3 [2021/02/05 13:51] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Caching: Invalidate (part I) ======+[[caching:intro|Intro]] 
 +[[caching:ex1|Ex1]] 
 +[[caching:ex2|Ex2]] 
 +[[caching:ex3|Ex3]] 
 +[[caching:ex4|Ex4]]====== Caching: Invalidate (part I) ======
  
 **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 [[http://www.eclipse.org/aspectj/doc/released/progguide/semantics-aspects.html#aspect-instantiation|aspectOf]] method.
 </note> </note>
  
caching/ex3.1172511482.txt.gz · Last modified: 2007/02/26 18:38 by bdefrain