Class NamedSourceData

java.lang.Object
org.springframework.cloud.kubernetes.commons.config.NamedSourceData

public abstract class NamedSourceData extends Object
Author:
wind57 Base class when dealing with named sources that support profiles specific sources, prefix based properties and single file yaml/properties.
  • 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

      protected String generateSourceName(String target, String sourceName, String namespace, String[] activeProfiles)
    • dataSupplier

      protected abstract MultipleSourcesContainer dataSupplier(LinkedHashSet<String> sourceNames)
      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