com.ca.apim.gateway.cagatewayconfig.beans.GlobalEnvironmentProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of config-builder Show documentation
Show all versions of config-builder Show documentation
Core library used to create bundles and apply for the CA API Gateway
/*
* 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();
}
}