@ProviderType
public interface ConfigurationOverrideMultiplexer
ConfigurationOverrideProvider
implementations in the container
and consolidates their result based on service ranking.Modifier and Type | Method and Description |
---|---|
boolean |
isAllOverridden(String contextPath,
String configName)
Checks if the whole configuration for the given context path and name is overridden.
|
Map<String,Object> |
overrideProperties(String contextPath,
String configName,
Map<String,Object> properties)
Override properties for given context path and configuration name.
|
org.apache.sling.api.resource.Resource |
overrideProperties(String contextPath,
String configName,
org.apache.sling.api.resource.Resource configResource)
Deprecated.
Please use
overrideProperties(String, String, Resource, ResourceResolver) instead. |
org.apache.sling.api.resource.Resource |
overrideProperties(String contextPath,
String configName,
org.apache.sling.api.resource.Resource configResource,
org.apache.sling.api.resource.ResourceResolver resourceResolver)
Override properties in given configuration resource (if any overrides are defined).
|
boolean isAllOverridden(@Nonnull String contextPath, @Nonnull String configName)
contextPath
- Context pathconfigName
- Config name@CheckForNull Map<String,Object> overrideProperties(@Nonnull String contextPath, @Nonnull String configName, @Nonnull Map<String,Object> properties)
contextPath
- Path of context resource for which configuration was resolvedconfigName
- Configuration nameproperties
- Resolved configuration properties@Deprecated @CheckForNull org.apache.sling.api.resource.Resource overrideProperties(@Nonnull String contextPath, @Nonnull String configName, @CheckForNull org.apache.sling.api.resource.Resource configResource)
overrideProperties(String, String, Resource, ResourceResolver)
instead.contextPath
- Context pathconfigName
- Configuration nameconfigResource
- Resolved configuration resource@CheckForNull org.apache.sling.api.resource.Resource overrideProperties(@Nonnull String contextPath, @Nonnull String configName, @CheckForNull org.apache.sling.api.resource.Resource configResource, @Nonnull org.apache.sling.api.resource.ResourceResolver resourceResolver)
contextPath
- Context pathconfigName
- Configuration nameconfigResource
- Resolved configuration resourceresourceResolver
- Resource resolverCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.