java.lang.Object
dev.orne.config.impl.AbstractConfig
dev.orne.config.impl.AbstractMutableConfig
- All Implemented Interfaces:
Config
- Direct Known Subclasses:
AbstractWatchableConfig
@API(status=INTERNAL,
since="1.0")
public abstract class AbstractMutableConfig
extends AbstractConfig
Base abstract implementation of mutable configuration properties provider.
Extending classes must add MutableConfig interface and
override set and remove methods
making them public and delegating to the protected methods of this class.
- Since:
- 1.0
- Version:
- 1.0, 2025-04
- Author:
- (w) Iker Hernaez
-
Field Summary
Fields inherited from class dev.orne.config.impl.AbstractConfig
KEY_BLANK_ERR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMutableConfig(ConfigOptions options) Creates a new instance.protectedAbstractMutableConfig(ConfigOptions options, MutableConfigOptions mutableOptions) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected ValueEncoderReturns the configuration properties values encoder.protected voidRemoves the specified configuration properties.protected voidRemoves the specified configuration properties.protected voidSets the value of the specified configuration property.protected voidSets the value of the specified configuration property.Methods inherited from class dev.orne.config.impl.AbstractConfig
contains, containsInt, get, getDecoder, getDecorator, getInt, getKeys, getKeysInt, getParent, getResolver, getUndecored, isEmpty, isEmptyInt, isOverrideParentPropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.orne.config.Config
as, get, get, getBoolean, getBoolean, getBoolean, getInteger, getInteger, getInteger, getKeys, getKeys, getLong, getLong, getLong, subset
-
Constructor Details
-
AbstractMutableConfig
Creates a new instance.- Parameters:
options- The configuration builder options.
-
AbstractMutableConfig
Creates a new instance.- Parameters:
options- The configuration builder options.mutableOptions- The mutable configuration builder options.
-
-
Method Details
-
getEncoder
Returns the configuration properties values encoder.- Returns:
- The configuration properties values encoder.
-
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- See Also:
-
setInt
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
-
remove
Removes the specified configuration properties.- Parameters:
keys- The configuration properties.- Throws:
ConfigException- If an error occurs removing the configuration properties.- See Also:
-
removeInt
Removes the specified configuration properties.- Parameters:
keys- The configuration properties.- Throws:
ConfigException- If an error occurs removing the configuration properties.
-