diff --git a/spring-context/src/main/java/org/springframework/cache/interceptor/CacheEvictOperation.java b/spring-context/src/main/java/org/springframework/cache/interceptor/CacheEvictOperation.java index 5008154ebc..5f5e0dc034 100644 --- a/spring-context/src/main/java/org/springframework/cache/interceptor/CacheEvictOperation.java +++ b/spring-context/src/main/java/org/springframework/cache/interceptor/CacheEvictOperation.java @@ -30,12 +30,16 @@ public class CacheEvictOperation extends CacheOperation { private final boolean beforeInvocation; + /** + * @since 4.3 + */ public CacheEvictOperation(CacheEvictOperation.Builder b) { super(b); this.cacheWide = b.cacheWide; this.beforeInvocation = b.beforeInvocation; } + public boolean isCacheWide() { return this.cacheWide; } diff --git a/spring-context/src/main/java/org/springframework/cache/interceptor/CacheOperation.java b/spring-context/src/main/java/org/springframework/cache/interceptor/CacheOperation.java index f545f8503d..6f6159934d 100644 --- a/spring-context/src/main/java/org/springframework/cache/interceptor/CacheOperation.java +++ b/spring-context/src/main/java/org/springframework/cache/interceptor/CacheOperation.java @@ -49,6 +49,9 @@ public abstract class CacheOperation implements BasicOperation { private final String toString; + /** + * @since 4.3 + */ protected CacheOperation(Builder b) { this.name = b.name; this.cacheNames = b.cacheNames; @@ -74,22 +77,18 @@ public abstract class CacheOperation implements BasicOperation { return this.key; } - public String getKeyGenerator() { return this.keyGenerator; } - public String getCacheManager() { return this.cacheManager; } - public String getCacheResolver() { return this.cacheResolver; } - public String getCondition() { return this.condition; } diff --git a/spring-context/src/main/java/org/springframework/cache/interceptor/CachePutOperation.java b/spring-context/src/main/java/org/springframework/cache/interceptor/CachePutOperation.java index 7ee2b2b74c..01cf15f109 100644 --- a/spring-context/src/main/java/org/springframework/cache/interceptor/CachePutOperation.java +++ b/spring-context/src/main/java/org/springframework/cache/interceptor/CachePutOperation.java @@ -29,11 +29,15 @@ public class CachePutOperation extends CacheOperation { private final String unless; + /** + * @since 4.3 + */ public CachePutOperation(CachePutOperation.Builder b) { super(b); this.unless = b.unless; } + public String getUnless() { return this.unless; } diff --git a/spring-context/src/main/java/org/springframework/cache/interceptor/CacheableOperation.java b/spring-context/src/main/java/org/springframework/cache/interceptor/CacheableOperation.java index 8258412af7..c3414e4da4 100644 --- a/spring-context/src/main/java/org/springframework/cache/interceptor/CacheableOperation.java +++ b/spring-context/src/main/java/org/springframework/cache/interceptor/CacheableOperation.java @@ -28,15 +28,19 @@ public class CacheableOperation extends CacheOperation { private final String unless; - private boolean sync; + private final boolean sync; + /** + * @since 4.3 + */ public CacheableOperation(CacheableOperation.Builder b) { super(b); this.unless = b.unless; this.sync = b.sync; } + public String getUnless() { return this.unless; } @@ -46,6 +50,9 @@ public class CacheableOperation extends CacheOperation { } + /** + * @since 4.3 + */ public static class Builder extends CacheOperation.Builder { private String unless;