This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
caching:ex2 [2008/10/07 13:51] bdefrain |
caching:ex2 [2008/10/07 14:25] bdefrain |
||
---|---|---|---|
Line 12: | Line 12: | ||
A correct implementation should pass the tests of suite '' | A correct implementation should pass the tests of suite '' | ||
+ | |||
+ | When done, remove the aspect from your build path before continuing with the next part. | ||
===== Using several aspect instances ===== | ===== Using several aspect instances ===== | ||
Line 17: | Line 19: | ||
Imagine that a '' | Imagine that a '' | ||
- | Therefore, write a new version of the above aspect that does not change the fields of the '' | + | To avoid this, write a new version of the above aspect that does not change the fields of the '' |
<note tip> | <note tip> | ||
Line 24: | Line 26: | ||
A correct implementation should also pass the tests of suite '' | A correct implementation should also pass the tests of suite '' | ||
+ | |||
+ | When done, remove the aspect from your build path before continuing with the next part. | ||
+ | |||
+ | ===== Reusable caching aspect ===== | ||
+ | |||
+ | A // | ||
+ | |||
+ | * The type of the cache value: i.e. '' | ||
+ | * The operation being cached: i.e. '' | ||
+ | |||
+ | Then reimplement your solution using this generic caching aspect. The new implementation should still pass the tests of suite '' | ||
---- | ---- | ||
- | Keep your aspect | + | Keep the last of your caching aspects |