@ProviderType
public interface ConfigurationManager
ConfigurationResolver
,
no low-level configuration resources managed by ConfigurationResourceResolver
.Modifier and Type | Method and Description |
---|---|
void |
deleteConfiguration(Resource resource,
String configName)
Delete configuration or configuration collection data from repository using the inner-most context path as reference.
|
ConfigurationData |
getConfiguration(Resource resource,
String configName)
Get configuration data for the given context resource and configuration name.
|
ConfigurationCollectionData |
getConfigurationCollection(Resource resource,
String configName)
Get configuration data collection for the given context resource and configuration name.
|
ConfigurationMetadata |
getConfigurationMetadata(String configName)
Get configuration metadata from any configuration metadata provider.
|
SortedSet<String> |
getConfigurationNames()
Get all configuration names.
|
String |
getPersistenceResourcePath(String configResourcePath)
Deprecated.
Please use
ConfigurationPersistenceStrategyMultiplexer instead. |
ConfigurationData |
newCollectionItem(Resource resource,
String configName)
Creates a new empty configuration data item for a configuration data collection for the given configuration name.
|
void |
persistConfiguration(Resource resource,
String configName,
ConfigurationPersistData data)
Write configuration data to repository using the inner-most context path as reference.
|
void |
persistConfigurationCollection(Resource resource,
String configName,
ConfigurationCollectionPersistData data)
Write configuration data collection using the inner-most context path as reference.
|
@CheckForNull ConfigurationData getConfiguration(@Nonnull Resource resource, @Nonnull String configName)
resource
- Context resourceconfigName
- Configuration name@Nonnull ConfigurationCollectionData getConfigurationCollection(@Nonnull Resource resource, @Nonnull String configName)
resource
- Context resourceconfigName
- Configuration namevoid persistConfiguration(@Nonnull Resource resource, @Nonnull String configName, @Nonnull 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(@Nonnull Resource resource, @Nonnull String configName, @Nonnull 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.@CheckForNull ConfigurationData newCollectionItem(@Nonnull Resource resource, @Nonnull String configName)
resource
- Context resourceconfigName
- Configuration namevoid deleteConfiguration(@Nonnull Resource resource, @Nonnull String configName)
resource
- Context resourceconfigName
- Configuration name@Nonnull SortedSet<String> getConfigurationNames()
@CheckForNull ConfigurationMetadata getConfigurationMetadata(@Nonnull String configName)
configName
- Configuration name@Deprecated @CheckForNull String getPersistenceResourcePath(@Nonnull String configResourcePath)
ConfigurationPersistenceStrategyMultiplexer
instead.configResourcePath
- Resource path or config nameCopyright © 2017 The Apache Software Foundation. All rights reserved.