com.alachisoft.integrations.spring.configuration.ApplicationConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ncache.spring Show documentation
Show all versions of ncache.spring Show documentation
NCache Spring integration.
/*
* 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.integrations.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.integrations.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.integrations.spring.configuration.CacheList getCacheList() {
return cacheRegions;
}
@ConfigurationSectionAnnotation(value = "caches")
public void setCacheList(CacheList value) {
cacheRegions = value;
}
}