public final class ConfigUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
findPrefix(String explicitPrefix,
Boolean useNameAsPrefix,
boolean defaultUseNameAsPrefix,
String normalizedName) |
static String |
getApplicationName(org.springframework.core.env.Environment env,
String configName,
String configurationTarget) |
static boolean |
includeProfileSpecificSources(boolean defaultIncludeProfileSpecificSources,
Boolean includeProfileSpecificSources) |
public static String getApplicationName(org.springframework.core.env.Environment env, String configName, String configurationTarget)
public static String findPrefix(String explicitPrefix, Boolean useNameAsPrefix, boolean defaultUseNameAsPrefix, String normalizedName)
explicitPrefix
- value of
'spring.cloud.kubernetes.config.sources.explicitPrefix'useNameAsPrefix
- value of
'spring.cloud.kubernetes.config.sources.useNameAsPrefix'defaultUseNameAsPrefix
- value of
'spring.cloud.kubernetes.config.defaultUseNameAsPrefix'normalizedName
- either the name of
'spring.cloud.kubernetes.config.sources.name' or
'spring.cloud.kubernetes.config.name'public static boolean includeProfileSpecificSources(boolean defaultIncludeProfileSpecificSources, Boolean includeProfileSpecificSources)
defaultIncludeProfileSpecificSources
- value of
'spring.cloud.kubernetes.config.includeProfileSpecificSources'includeProfileSpecificSources
- value of
'spring.cloud.kubernetes.config.sources.includeProfileSpecificSources'Copyright © 2017–2022 Pivotal Software, Inc.. All rights reserved.