/** * TODO The order would make more sense as System Property, Environment Variable, Default * Profile name but we have to keep the current order for backwards compatiblity. Consider * changing this in a future major version. */ public final String loadProfileName() { final String profileEnvVarOverride = getEnvProfileName(); if (!StringUtils.isNullOrEmpty(profileEnvVarOverride)) { return profileEnvVarOverride; } else { final String profileSysPropOverride = getSysPropertyProfileName(); if (!StringUtils.isNullOrEmpty(profileSysPropOverride)) { return profileSysPropOverride; } else { return DEFAULT_PROFILE_NAME; } } }
/** * TODO The order would make more sense as System Property, Environment Variable, Default * Profile name but we have to keep the current order for backwards compatiblity. Consider * changing this in a future major version. */ public final String loadProfileName() { final String profileEnvVarOverride = getEnvProfileName(); if (!StringUtils.isNullOrEmpty(profileEnvVarOverride)) { return profileEnvVarOverride; } else { final String profileSysPropOverride = getSysPropertyProfileName(); if (!StringUtils.isNullOrEmpty(profileSysPropOverride)) { return profileSysPropOverride; } else { return DEFAULT_PROFILE_NAME; } } }
/** * TODO The order would make more sense as System Property, Environment Variable, Default * Profile name but we have to keep the current order for backwards compatiblity. Consider * changing this in a future major version. */ public final String loadProfileName() { final String profileEnvVarOverride = getEnvProfileName(); if (!StringUtils.isNullOrEmpty(profileEnvVarOverride)) { return profileEnvVarOverride; } else { final String profileSysPropOverride = getSysPropertyProfileName(); if (!StringUtils.isNullOrEmpty(profileSysPropOverride)) { return profileSysPropOverride; } else { return DEFAULT_PROFILE_NAME; } } }