- All Superinterfaces:
Config
- All Known Subinterfaces:
FileMutableConfig,FileWatchableConfig,PreferencesMutableConfig,WatchableConfig
- All Known Implementing Classes:
AbstractMutableConfig,AbstractWatchableConfig,CommonsMutableConfigImpl,DelegatedMutableConfig,DelegatedWatchableConfig,JsonMutableConfigImpl,PreferencesMutableConfigImpl,PropertiesMutableConfigImpl,XmlMutableConfigImpl,YamlMutableConfigImpl
Configuration properties provider with properties mutable at runtime.
- Since:
- 0.1
- Version:
- 1.0, 2019-07, 2.0, 2025-04
- Author:
- (w) Iker Hernaez
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the specified configuration properties.default voidSets the value of the configuration parameter.default voidSets the value of the configuration parameter.default voidSets the value of the configuration parameter.voidSets the value of the specified configuration property.default @NotNull MutableConfigCreates a subset configuration containing only the properties with the specified prefix.Methods inherited from interface dev.orne.config.Config
as, contains, get, get, get, getBoolean, getBoolean, getBoolean, getInteger, getInteger, getInteger, getKeys, getKeys, getKeys, getLong, getLong, getLong, getParent, getUndecored, isEmpty
-
Method Details
-
set
Sets the value of the specified configuration property.- Parameters:
key- The configuration property.value- The value to set- Throws:
ConfigException- If an error occurs setting the configuration property value
-
set
Sets the value of the configuration parameter.- Parameters:
key- The configuration property.value- The value to set- Throws:
ConfigException- If an error occurs setting the configuration property value
-
set
Sets the value of the configuration parameter.- Parameters:
key- The configuration property.value- The value to set- Throws:
ConfigException- If an error occurs setting the configuration property value
-
set
Sets the value of the configuration parameter.- Parameters:
key- The configuration property.value- The value to set- Throws:
ConfigException- If an error occurs setting the configuration property value
-
remove
Removes the specified configuration properties.- Parameters:
keys- The configuration properties.- Throws:
ConfigException- If an error occurs removing the configuration properties.
-
subset
Creates a subset configuration containing only the properties with the specified prefix.
-