Interface ConfigurationInheritanceStrategy

  • All Known Subinterfaces:
    ConfigurationInheritanceStrategyMultiplexer

    @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 Detail

      • 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