File tree 4 files changed +13
-15
lines changed
src/main/java/javax/cache/annotation
4 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 117
117
/**
118
118
* Defines zero (0) or more exception {@link Class classes}, that must be a
119
119
* subclass of {@link Throwable}, indicating the exception types that <b>must</b>
120
- * cause the parameter to be cached. Only used if {@link #afterInvocation()} is true.
120
+ * cause the parameter to be cached. Only used if {@link #afterInvocation()} is
121
+ * true.
121
122
*/
122
123
@ Nonbinding Class <? extends Throwable >[] cacheFor () default {};
123
124
Original file line number Diff line number Diff line change 19
19
20
20
/**
21
21
* When a method annotated with {@link CacheRemove} is invoked a {@link
22
- * GeneratedCacheKey} will be generated and
23
- * {@link Cache#remove(Object)} will be invoked on the specified
24
- * cache.
22
+ * GeneratedCacheKey} will be generated and {@link Cache#remove(Object)} will be
23
+ * invoked on the specified cache.
25
24
* <p>
26
25
* The default behavior is to call {@link Cache#remove(Object)} after
27
26
* the annotated method is invoked, this behavior can be changed by setting
50
49
* exceptions prevent the remove</li>
51
50
* <li>If {@link #evictFor()} is specified and {@link #noEvictFor()} is not
52
51
* specified then only exceptions that pass an instanceof check against the
53
- * evictFor list result in a
54
- * remove</li>
52
+ * evictFor list result in a remove</li>
55
53
* <li>If {@link #noEvictFor()} is specified and {@link #evictFor()} is not
56
54
* specified then all exceptions that do not pass an instanceof check against the
57
- * noEvictFor result in a
58
- * remove</li>
55
+ * noEvictFor result in a remove</li>
59
56
* <li>If {@link #evictFor()} and {@link #noEvictFor()} are both specified then
60
57
* exceptions that pass an instanceof check against the evictFor list but do not
61
58
* pass an instanceof check against the noEvictFor list result in a remove</li>
Original file line number Diff line number Diff line change 105
105
/**
106
106
* Defines zero (0) or more exception {@link Class Classes}, that must be a
107
107
* subclass of {@link Throwable}, indicating the exception types that must
108
- * <b>not</b> cause a cache eviction. Only used if {@link #afterInvocation()} is true.
108
+ * <b>not</b> cause a cache eviction. Only used if {@link #afterInvocation()} is
109
+ * true.
109
110
*/
110
111
@ Nonbinding Class <? extends Throwable >[] noEvictFor () default {};
111
112
}
Original file line number Diff line number Diff line change 18
18
19
19
/**
20
20
* When a method annotated with {@link CacheResult} is invoked a
21
- * {@link GeneratedCacheKey} will be generated and
22
- * {@link Cache#get(Object)} is called before the annotated method
23
- * actually executes. If a value is found in the cache it is returned and the
24
- * annotated method is never actually executed. If no value is found the
25
- * annotated method is invoked and the returned value is stored in the cache
26
- * with the generated key.
21
+ * {@link GeneratedCacheKey} will be generated and {@link Cache#get(Object)} is
22
+ * called before the annotated method actually executes. If a value is found in the
23
+ * cache it is returned and the annotated method is never actually executed. If no
24
+ * value is found the annotated method is invoked and the returned value is stored
25
+ * in the cache with the generated key.
27
26
* <p>
28
27
* Exceptions are not cached by default. Caching of exceptions can be enabled by
29
28
* specifying an {@link #exceptionCacheName()}. If an exception cache is specified
You can’t perform that action at this time.
0 commit comments