@ProviderType
public interface ConfigurationManager
ConfigurationResolver
,
no low-level configuration resources managed by ConfigurationResourceResolver
.Modifier and Type | Method and Description |
---|---|
void |
deleteConfiguration(@NotNull Resource resource,
@NotNull java.lang.String configName)
Delete configuration or configuration collection data from repository using the inner-most context path as reference.
|
@Nullable ConfigurationData |
getConfiguration(@NotNull Resource resource,
@NotNull java.lang.String configName)
Get configuration data for the given context resource and configuration name.
|
@NotNull ConfigurationCollectionData |
getConfigurationCollection(@NotNull Resource resource,
@NotNull java.lang.String configName)
Get configuration data collection for the given context resource and configuration name.
|
@Nullable ConfigurationMetadata |
getConfigurationMetadata(@NotNull java.lang.String configName)
Get configuration metadata from any configuration metadata provider.
|
@NotNull java.util.SortedSet<java.lang.String> |
getConfigurationNames()
Get all configuration names.
|
@Nullable java.lang.String |
getPersistenceResourcePath(@NotNull java.lang.String configResourcePath)
Deprecated.
Please use
ConfigurationPersistenceStrategyMultiplexer instead. |
@Nullable ConfigurationData |
newCollectionItem(@NotNull Resource resource,
@NotNull java.lang.String configName)
Creates a new empty configuration data item for a configuration data collection for the given configuration name.
|
void |
persistConfiguration(@NotNull Resource resource,
@NotNull java.lang.String configName,
@NotNull ConfigurationPersistData data)
Write configuration data to repository using the inner-most context path as reference.
|
void |
persistConfigurationCollection(@NotNull Resource resource,
@NotNull java.lang.String configName,
@NotNull ConfigurationCollectionPersistData data)
Write configuration data collection using the inner-most context path as reference.
|
@Nullable @Nullable ConfigurationData getConfiguration(@NotNull @NotNull Resource resource, @NotNull @NotNull java.lang.String configName)
resource
- Context resourceconfigName
- Configuration name@NotNull @NotNull ConfigurationCollectionData getConfigurationCollection(@NotNull @NotNull Resource resource, @NotNull @NotNull java.lang.String configName)
resource
- Context resourceconfigName
- Configuration namevoid persistConfiguration(@NotNull @NotNull Resource resource, @NotNull @NotNull java.lang.String configName, @NotNull @NotNull ConfigurationPersistData data)
resource
- Context resourceconfigName
- Configuration namedata
- Configuration data to be stored. All existing properties are erased and replaced with the new ones.void persistConfigurationCollection(@NotNull @NotNull Resource resource, @NotNull @NotNull java.lang.String configName, @NotNull @NotNull ConfigurationCollectionPersistData data)
resource
- Context resourceconfigName
- Configuration namedata
- Configuration collection data to be stored. All existing collection entries on this context path level are erased and replaced with the new ones.@Nullable @Nullable ConfigurationData newCollectionItem(@NotNull @NotNull Resource resource, @NotNull @NotNull java.lang.String configName)
resource
- Context resourceconfigName
- Configuration namevoid deleteConfiguration(@NotNull @NotNull Resource resource, @NotNull @NotNull java.lang.String configName)
resource
- Context resourceconfigName
- Configuration name@NotNull @NotNull java.util.SortedSet<java.lang.String> getConfigurationNames()
@Nullable @Nullable ConfigurationMetadata getConfigurationMetadata(@NotNull @NotNull java.lang.String configName)
configName
- Configuration name@Deprecated @Nullable @Nullable java.lang.String getPersistenceResourcePath(@NotNull @NotNull java.lang.String configResourcePath)
ConfigurationPersistenceStrategyMultiplexer
instead.configResourcePath
- Resource path or config nameCopyright © 2018 The Apache Software Foundation. All rights reserved.