Class DefaultConfigurationInheritanceStrategy
java.lang.Object
org.apache.sling.caconfig.impl.def.DefaultConfigurationInheritanceStrategy
- All Implemented Interfaces:
ConfigurationInheritanceStrategy
public class DefaultConfigurationInheritanceStrategy
extends Object
implements ConfigurationInheritanceStrategy
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetResource
(@NotNull Iterator<Resource> configResources) Pick or merge resources for inheritance.
-
Constructor Details
-
DefaultConfigurationInheritanceStrategy
public DefaultConfigurationInheritanceStrategy()
-
-
Method Details
-
getResource
Description copied from interface:ConfigurationInheritanceStrategy
Pick or merge resources for inheritance.- Specified by:
getResource
in interfaceConfigurationInheritanceStrategy
- 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
-