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

com.ca.apim.gateway.cagatewayconfig.beans.GlobalEnvironmentProperty Maven / Gradle / Ivy

There is a newer version: 1.0.9
Show newest version
/*
 * Copyright (c) 2018 CA. All rights reserved.
 * This software may be modified and distributed under the terms
 * of the MIT license.  See the LICENSE file for details.
 */

package com.ca.apim.gateway.cagatewayconfig.beans;

import com.ca.apim.gateway.cagatewayconfig.config.spec.ConfigurationFile;
import com.ca.apim.gateway.cagatewayconfig.config.spec.EnvironmentType;

import javax.inject.Named;

import static com.ca.apim.gateway.cagatewayconfig.config.spec.ConfigurationFile.FileType.PROPERTIES;

@Named("ENVIRONMENT_PROPERTY")
@ConfigurationFile(name = "global-env", type = PROPERTIES)
@EnvironmentType("PROPERTY")
public class GlobalEnvironmentProperty extends EnvironmentProperty {

    public GlobalEnvironmentProperty() { }

    public GlobalEnvironmentProperty(final String name, final String value) {
        super(name, value);
    }

    @Override
    public String getKey() {
        return "gateway." + getName();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy