Improve configuration changes in GuavaCacheManager
Prior to this commit, setting the parameters used to build the caches
was fragile in static mode as the caches were created right when the
setCacheNames setter was called.
This commit provides a better handling of such arguments and also
provide a way to restore the dynamic mode if necessary.
Issue: SPR-12120
Assert.notNull(cacheBuilder,"CacheBuilder must not be null");
this.cacheBuilder=cacheBuilder;
doSetCacheBuilder(cacheBuilder);
}
/**
@ -109,7 +117,7 @@ public class GuavaCacheManager implements CacheManager {
@@ -109,7 +117,7 @@ public class GuavaCacheManager implements CacheManager {
@ -120,7 +128,7 @@ public class GuavaCacheManager implements CacheManager {
@@ -120,7 +128,7 @@ public class GuavaCacheManager implements CacheManager {
@ -131,7 +139,10 @@ public class GuavaCacheManager implements CacheManager {
@@ -131,7 +139,10 @@ public class GuavaCacheManager implements CacheManager {
@ -141,7 +152,10 @@ public class GuavaCacheManager implements CacheManager {
@@ -141,7 +152,10 @@ public class GuavaCacheManager implements CacheManager {
@ -196,4 +210,20 @@ public class GuavaCacheManager implements CacheManager {
@@ -196,4 +210,20 @@ public class GuavaCacheManager implements CacheManager {