Interface ConfigurationInheritanceStrategy

All Known Subinterfaces:
ConfigurationInheritanceStrategyMultiplexer
All Known Implementing Classes:
DefaultConfigurationInheritanceStrategy

@ConsumerType public interface ConfigurationInheritanceStrategy
Defines how (and if) resources in a resource hierarchy should inherit form each other. Primary use case is property inheritance over the inheritance chain.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Resource
    getResource(@NotNull Iterator<Resource> configResources)
    Pick or merge resources for inheritance.
  • Method Details

    • getResource

      @Nullable @Nullable Resource getResource(@NotNull @NotNull Iterator<Resource> configResources)
      Pick or merge resources for inheritance.
      Parameters:
      configResources - Iterator of configuration resources that form the inheritance hierarchy. First resource is the "closest" match, the other resources may be used to inherit from.
      Returns:
      Inherited resource or null if this strategy does not support the given resources