All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alachisoft.integrations.spring.configuration.ApplicationConfiguration Maven / Gradle / Ivy

There is a newer version: 5.2-alpha-23
Show newest version
/*
 * 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy