Package org.apache.sling.caconfig.spi
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 TypeMethodDescription@Nullable Resource
getResource
(@NotNull Iterator<Resource> configResources) Pick or merge resources for inheritance.
-
Method Details
-
getResource
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
-