Polishing

This commit is contained in:
Juergen Hoeller
2016-05-05 20:35:34 +02:00
parent a1a87679da
commit 7dc181261e
4 changed files with 19 additions and 5 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;