/** * Call super and also update the configuration to reflect the changes. * * @param value */ @Override public void setDeploymentServerId(String value) { super.setDeploymentServerId(value); setValueInConfig(DEPLOYMENT_SERVER_ID_PROPERTY, value); setValueInConfig(ContextKey.serverId.getKey(), value); }
@Override public String getValue(ContextKey key) { String value = getValueFromConfig(key.getKey()); if (value != null) { return value; } else { return super.getValue(key); } }
/** * Call super and also update the configuration to reflect the changes. * * @param value */ @Override public void setDeploymentRegion(String value) { super.setDeploymentRegion(value); setValueInConfig(DEPLOYMENT_REGION_PROPERTY, value); setValueInConfig(ContextKey.region.getKey(), value); }
@Override public void setApplicationId(String appId) { override.setProperty(ContextKey.appId.getKey(), appId); }
@Override public String getApplicationId() { return config.getString(ContextKey.appId.getKey(), ""); }
@Override public String getDeploymentEnvironment() { return config.getString(ContextKey.environment.getKey(), ""); }
/** * Call super and also update the configuration to reflect the changes. * * @param value */ @Override public void setDeploymentRegion(String value) { super.setDeploymentRegion(value); setValueInConfig(DEPLOYMENT_REGION_PROPERTY, value); setValueInConfig(ContextKey.region.getKey(), value); }
/** * Call super and also update the configuration to reflect the changes. * * @param value */ @Override public void setDeploymentStack(String value) { super.setDeploymentStack(value); setValueInConfig(DEPLOYMENT_STACK_PROPERTY, value); setValueInConfig(ContextKey.stack.getKey(), value); }
/** * Call super and also update the configuration to reflect the changes. * * @param value */ @Override public void setApplicationId(String value) { super.setApplicationId(value); setValueInConfig(DEPLOYMENT_APPLICATION_ID_PROPERTY, value); setValueInConfig(ContextKey.appId.getKey(), value); }
@Override public void setDeploymentStack(String stack) { override.setProperty(ContextKey.stack.getKey(), stack); }
@Override public void setDeploymentServerId(String serverId) { override.setProperty(ContextKey.serverId.getKey(), serverId); }
@Override public void setDeploymentEnvironment(String env) { override.setProperty(ContextKey.environment.getKey(), env); }
/** * Call super and also update the configuration to reflect the changes. * * @param value */ @Override public void setDeploymentServerId(String value) { super.setDeploymentServerId(value); setValueInConfig(DEPLOYMENT_SERVER_ID_PROPERTY, value); setValueInConfig(ContextKey.serverId.getKey(), value); }
/** * Call super and also update the configuration to reflect the changes. * * @param value */ @Override public void setDeploymentEnvironment(String value) { super.setDeploymentEnvironment(value); setValueInConfig(DEPLOYMENT_ENVIRONMENT_PROPERTY, value); setValueInConfig(ContextKey.environment.getKey(), value); }
/** * Call super and also update the configuration to reflect the changes. * * @param value */ @Override public void setDeploymentStack(String value) { super.setDeploymentStack(value); setValueInConfig(DEPLOYMENT_STACK_PROPERTY, value); setValueInConfig(ContextKey.stack.getKey(), value); }
@Override public String getValue(ContextKey key) { String value = getValueFromConfig(key.getKey()); if (value != null) { return value; } else { return super.getValue(key); } }
/** * Call super and also update the configuration to reflect the changes. * * @param value */ @Override public void setDeploymentDatacenter(String value) { super.setDeploymentDatacenter(value); setValueInConfig(DEPLOYMENT_DATACENTER_PROPERTY, value); setValueInConfig(ContextKey.datacenter.getKey(), value); }
/** * Call super and also update the configuration to reflect the changes. * * @param value */ @Override public void setDeploymentDatacenter(String value) { super.setDeploymentDatacenter(value); setValueInConfig(DEPLOYMENT_DATACENTER_PROPERTY, value); setValueInConfig(ContextKey.datacenter.getKey(), value); }
public static void setDeploymentContext(DeploymentContext context) { ConfigurationManager.context = context; if (getConfigInstance() == null) { return; } for (DeploymentContext.ContextKey key: DeploymentContext.ContextKey.values()) { String value = context.getValue(key); if (value != null) { instance.setProperty(key.getKey(), value); } } }
/** * Call super and also update the configuration to reflect the changes. * * @param value */ @Override public void setApplicationId(String value) { super.setApplicationId(value); setValueInConfig(DEPLOYMENT_APPLICATION_ID_PROPERTY, value); setValueInConfig(ContextKey.appId.getKey(), value); }