Class DefaultConfigurationInheritanceStrategy

java.lang.Object
org.apache.sling.caconfig.impl.def.DefaultConfigurationInheritanceStrategy
All Implemented Interfaces:
ConfigurationInheritanceStrategy

public class DefaultConfigurationInheritanceStrategy extends Object implements ConfigurationInheritanceStrategy
  • Constructor Details

    • DefaultConfigurationInheritanceStrategy

      public DefaultConfigurationInheritanceStrategy()
  • Method Details

    • getResource

      public Resource getResource(@NotNull @NotNull Iterator<Resource> configResources)
      Description copied from interface: ConfigurationInheritanceStrategy
      Pick or merge resources for inheritance.
      Specified by:
      getResource in interface ConfigurationInheritanceStrategy
      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