public class ConfigurationResourceResolvingStrategyMultiplexerImpl extends Object implements ConfigurationResourceResolvingStrategyMultiplexer
ConfigurationResourceResolvingStrategy
implementations in the container
and consolidates their result based on service ranking.Constructor and Description |
---|
ConfigurationResourceResolvingStrategyMultiplexerImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
bindConfigurationResourceResolvingStrategy(org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy contextPathStrategy,
Map<String,Object> props) |
org.apache.sling.api.resource.Resource |
getResource(@NotNull org.apache.sling.api.resource.Resource resource,
@NotNull Collection<String> bucketNames,
@NotNull String configName)
Gets the configuration resource from the first implementation that has an answer.
|
Collection<org.apache.sling.api.resource.Resource> |
getResourceCollection(@NotNull org.apache.sling.api.resource.Resource resource,
@NotNull Collection<String> bucketNames,
@NotNull String configName)
Gets the configuration resource collection from the first implementation that has an answer.
|
Collection<Iterator<org.apache.sling.api.resource.Resource>> |
getResourceCollectionInheritanceChain(@NotNull org.apache.sling.api.resource.Resource resource,
@NotNull Collection<String> bucketNames,
@NotNull String configName)
Gets the configuration resource collection inheritance chains from the first implementation that has an answer.
|
String |
getResourceCollectionParentPath(@NotNull org.apache.sling.api.resource.Resource resource,
@NotNull String bucketName,
@NotNull String configName)
Gets the configuration resource collection parent path from the first implementation that has an answer.
|
Iterator<org.apache.sling.api.resource.Resource> |
getResourceInheritanceChain(@NotNull org.apache.sling.api.resource.Resource resource,
@NotNull Collection<String> bucketNames,
@NotNull String configName)
Gets the configuration resource inheritance chain from the first implementation that has an answer.
|
String |
getResourcePath(@NotNull org.apache.sling.api.resource.Resource resource,
@NotNull String bucketName,
@NotNull String configName)
Gets the configuration resource path from the first implementation that has an answer.
|
protected void |
unbindConfigurationResourceResolvingStrategy(org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy contextPathStrategy,
Map<String,Object> props) |
public ConfigurationResourceResolvingStrategyMultiplexerImpl()
protected void bindConfigurationResourceResolvingStrategy(org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy contextPathStrategy, Map<String,Object> props)
protected void unbindConfigurationResourceResolvingStrategy(org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy contextPathStrategy, Map<String,Object> props)
public org.apache.sling.api.resource.Resource getResource(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, @NotNull @NotNull Collection<String> bucketNames, @NotNull @NotNull String configName)
getResource
in interface org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy
public Collection<org.apache.sling.api.resource.Resource> getResourceCollection(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, @NotNull @NotNull Collection<String> bucketNames, @NotNull @NotNull String configName)
getResourceCollection
in interface org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy
public Iterator<org.apache.sling.api.resource.Resource> getResourceInheritanceChain(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, @NotNull @NotNull Collection<String> bucketNames, @NotNull @NotNull String configName)
getResourceInheritanceChain
in interface org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy
public Collection<Iterator<org.apache.sling.api.resource.Resource>> getResourceCollectionInheritanceChain(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, @NotNull @NotNull Collection<String> bucketNames, @NotNull @NotNull String configName)
getResourceCollectionInheritanceChain
in interface org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy
public String getResourcePath(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, @NotNull @NotNull String bucketName, @NotNull @NotNull String configName)
getResourcePath
in interface org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy
public String getResourceCollectionParentPath(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, @NotNull @NotNull String bucketName, @NotNull @NotNull String configName)
getResourceCollectionParentPath
in interface org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.