Add setter for cache names so that it can be bound both via indexed
access and comma-separated list.
This commit is contained in:
Stephane Nicoll 2015-04-10 17:20:29 +02:00
parent ff637d3aaa
commit 452ce0ffad
1 changed files with 5 additions and 1 deletions

View File

@ -47,7 +47,7 @@ public class CacheProperties {
* Comma-separated list of cache names to create if supported by the underlying cache
* manager. Usually, this disables the ability to create additional caches on-the-fly.
*/
private final List<String> cacheNames = new ArrayList<String>();
private List<String> cacheNames = new ArrayList<String>();
private final JCache jcache = new JCache();
@ -73,6 +73,10 @@ public class CacheProperties {
return this.cacheNames;
}
public void setCacheNames(List<String> cacheNames) {
this.cacheNames = cacheNames;
}
public JCache getJcache() {
return this.jcache;
}