File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -47844,6 +47844,17 @@ using the aspectj mode in this case.
47844
47844
47845
47845
[[cache-annotation-stereotype]]
47846
47846
==== Using custom annotations
47847
+
47848
+ .Custom annotation and AspectJ
47849
+ ****
47850
+ This feature only works out-of-the-box with the proxy-based approach but can be enabled
47851
+ with a bit of extra effort using AspectJ.
47852
+
47853
+ The `spring-aspects` module defines an aspect for the standard annotations only. If you
47854
+ have defined your own annotations, you also need to define an aspect for those. Check
47855
+ `AnnotationCacheAspect` for an example.
47856
+ ****
47857
+
47847
47858
The caching abstraction allows you to use your own annotations to identify what method
47848
47859
triggers cache population or eviction. This is quite handy as a template mechanism as it
47849
47860
eliminates the need to duplicate cache annotation declarations (especially useful if the
You can’t perform that action at this time.
0 commit comments