com.alachisoft.ncache.spring.configuration.ApplicationConfiguration 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.ConfigurationAttributeAnnotation;
import Alachisoft.NCache.Common.Configuration.ConfigurationRootAnnotation;
import Alachisoft.NCache.Common.Configuration.ConfigurationSectionAnnotation;
@ConfigurationRootAnnotation(value = "application-config")
public class ApplicationConfiguration {
private String applicationID;
private boolean cacheExceptionEnabled = true;
private String defaultRegion;
private com.alachisoft.ncache.spring.configuration.CacheList cacheRegions;
@ConfigurationAttributeAnnotation(value = "application-id", appendText = "")
public String getApplicationID() {
return applicationID;
}
@ConfigurationAttributeAnnotation(value = "application-id", appendText = "")
public void setApplicationID(String value) {
applicationID = value;
}
@ConfigurationAttributeAnnotation(value = "enable-cache-exception", appendText = "")
public boolean getCacheExceptionEnabled() {
return cacheExceptionEnabled;
}
@ConfigurationAttributeAnnotation(value = "enable-cache-exception", appendText = "")
public void setCacheExceptionEnabled(boolean value) {
cacheExceptionEnabled = value;
}
@ConfigurationAttributeAnnotation(value = "default-cache-name", appendText = "")
public String getDefaultCacheName() {
return defaultRegion;
}
@ConfigurationAttributeAnnotation(value = "default-cache-name", appendText = "")
public void setDefaultCacheName(String value) {
defaultRegion = value;
}
@ConfigurationSectionAnnotation(value = "caches")
public com.alachisoft.ncache.spring.configuration.CacheList getCacheList() {
return cacheRegions;
}
@ConfigurationSectionAnnotation(value = "caches")
public void setCacheList(CacheList value) {
cacheRegions = value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy