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