Class NamedSourceData
java.lang.Object
org.springframework.cloud.kubernetes.commons.config.NamedSourceData
- Author:
- wind57 Base class when dealing with named sources that support profiles specific sources, prefix based properties and single file yaml/properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal SourceDatacompute(String sourceName, ConfigUtils.Prefix prefix, String target, boolean profileSources, boolean failFast, String namespace, String[] activeProfiles) protected abstract MultipleSourcesContainerdataSupplier(LinkedHashSet<String> sourceNames) Implementation specific (fabric8 or k8s-native) way to get the data from then given source names.protected StringgenerateSourceName(String target, String sourceName, String namespace, String[] activeProfiles)
-
Constructor Details
-
NamedSourceData
public NamedSourceData()
-
-
Method Details
-
compute
public final SourceData compute(String sourceName, ConfigUtils.Prefix prefix, String target, boolean profileSources, boolean failFast, String namespace, String[] activeProfiles) -
generateSourceName
-
dataSupplier
Implementation specific (fabric8 or k8s-native) way to get the data from then given source names.- Parameters:
sourceNames- the ones that have been configured, LinkedHashSet in order ot preserve the order: non-profile source first and then the rest- Returns:
- an Entry that holds the names of the source that were found and their data
-