@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(@NotNull java.lang.String contextPath,
@NotNull java.lang.String configName)
Checks if the whole configuration for the given context path and name is overridden.
|
@Nullable java.util.Map<java.lang.String,java.lang.Object> |
overrideProperties(@NotNull java.lang.String contextPath,
@NotNull java.lang.String configName,
@NotNull java.util.Map<java.lang.String,java.lang.Object> properties)
Override properties for given context path and configuration name.
|
@Nullable Resource |
overrideProperties(@NotNull java.lang.String contextPath,
@NotNull java.lang.String configName,
@Nullable Resource configResource)
Deprecated.
Please use
overrideProperties(String, String, Resource, ResourceResolver) instead. |
@Nullable Resource |
overrideProperties(@NotNull java.lang.String contextPath,
@NotNull java.lang.String configName,
@Nullable Resource configResource,
@NotNull ResourceResolver resourceResolver)
Override properties in given configuration resource (if any overrides are defined).
|
boolean isAllOverridden(@NotNull @NotNull java.lang.String contextPath, @NotNull @NotNull java.lang.String configName)
contextPath
- Context pathconfigName
- Config name@Nullable @Nullable java.util.Map<java.lang.String,java.lang.Object> overrideProperties(@NotNull @NotNull java.lang.String contextPath, @NotNull @NotNull java.lang.String configName, @NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> properties)
contextPath
- Path of context resource for which configuration was resolvedconfigName
- Configuration nameproperties
- Resolved configuration properties@Deprecated @Nullable @Nullable Resource overrideProperties(@NotNull @NotNull java.lang.String contextPath, @NotNull @NotNull java.lang.String configName, @Nullable @Nullable Resource configResource)
overrideProperties(String, String, Resource, ResourceResolver)
instead.contextPath
- Context pathconfigName
- Configuration nameconfigResource
- Resolved configuration resource@Nullable @Nullable Resource overrideProperties(@NotNull @NotNull java.lang.String contextPath, @NotNull @NotNull java.lang.String configName, @Nullable @Nullable Resource configResource, @NotNull @NotNull ResourceResolver resourceResolver)
contextPath
- Context pathconfigName
- Configuration nameconfigResource
- Resolved configuration resourceresourceResolver
- Resource resolverCopyright © 2018 The Apache Software Foundation. All rights reserved.