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(org.apache.sling.api.resource.Resource resource,
Collection<String> bucketNames,
String configName)
Gets the configuration resource from the first implementation that has an answer.
|
Collection<org.apache.sling.api.resource.Resource> |
getResourceCollection(org.apache.sling.api.resource.Resource resource,
Collection<String> bucketNames,
String configName)
Gets the configuration resource collection from the first implementation that has an answer.
|
Collection<Iterator<org.apache.sling.api.resource.Resource>> |
getResourceCollectionInheritanceChain(org.apache.sling.api.resource.Resource resource,
Collection<String> bucketNames,
String configName)
Gets the configuration resource collection inheritance chains from the first implementation that has an answer.
|
String |
getResourceCollectionParentPath(org.apache.sling.api.resource.Resource resource,
String bucketName,
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(org.apache.sling.api.resource.Resource resource,
Collection<String> bucketNames,
String configName)
Gets the configuration resource inheritance chain from the first implementation that has an answer.
|
String |
getResourcePath(org.apache.sling.api.resource.Resource resource,
String bucketName,
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(org.apache.sling.api.resource.Resource resource, Collection<String> bucketNames, String configName)
getResource
in interface org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy
public Collection<org.apache.sling.api.resource.Resource> getResourceCollection(org.apache.sling.api.resource.Resource resource, Collection<String> bucketNames, String configName)
getResourceCollection
in interface org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy
public Iterator<org.apache.sling.api.resource.Resource> getResourceInheritanceChain(org.apache.sling.api.resource.Resource resource, Collection<String> bucketNames, String configName)
getResourceInheritanceChain
in interface org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy
public Collection<Iterator<org.apache.sling.api.resource.Resource>> getResourceCollectionInheritanceChain(org.apache.sling.api.resource.Resource resource, Collection<String> bucketNames, String configName)
getResourceCollectionInheritanceChain
in interface org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy
public String getResourcePath(org.apache.sling.api.resource.Resource resource, String bucketName, String configName)
getResourcePath
in interface org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy
public String getResourceCollectionParentPath(org.apache.sling.api.resource.Resource resource, String bucketName, String configName)
getResourceCollectionParentPath
in interface org.apache.sling.caconfig.resource.spi.ConfigurationResourceResolvingStrategy
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.