com.alachisoft.ncache.spring.configuration.CacheList Maven / Gradle / Ivy
/*
* Alachisoft (R) NCache Integrations
* NCache Provider for Spring
* ===============================================================================
* Copyright © Alachisoft. All rights reserved.
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
* OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
* LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE.
* ===============================================================================
*/
package com.alachisoft.ncache.spring.configuration;
import Alachisoft.NCache.Common.Configuration.ConfigurationSectionAnnotation;
public class CacheList {
private SpringCacheConfiguration[] caches;
@ConfigurationSectionAnnotation(value = "cache")
public SpringCacheConfiguration[] getCaches() {
return caches;
}
@ConfigurationSectionAnnotation(value = "cache")
public void setCaches(Object[] value) {
caches = new SpringCacheConfiguration[value.length];
for (int i = 0; i < value.length; i++) {
caches[i] = (SpringCacheConfiguration) value[i];
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy