java.lang.Object
dev.orne.config.impl.AbstractConfig
dev.orne.config.impl.AbstractMutableConfig
- All Implemented Interfaces:
Config,MutableConfig
- Direct Known Subclasses:
AbstractWatchableConfig
@API(status=INTERNAL,
since="1.0")
public abstract class AbstractMutableConfig
extends AbstractConfig
implements MutableConfig
Base abstract implementation of mutable configuration properties provider.
- 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(@NotNull ConfigOptions options, @NotNull MutableConfigOptions mutableOptions) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull ValueEncoderReturns the configuration properties values encoder.voidRemoves the specified configuration properties.protected abstract voidRemoves the specified configuration properties.voidSets the value of the specified configuration property.protected abstract 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, contains, get, get, get, getBoolean, getBoolean, getBoolean, getInteger, getInteger, getInteger, getKeys, getKeys, getKeys, getLong, getLong, getLong, getParent, getUndecored, isEmptyMethods inherited from interface dev.orne.config.MutableConfig
set, set, set, subset
-
Constructor Details
-
AbstractMutableConfig
protected AbstractMutableConfig(@NotNull @NotNull ConfigOptions options, @NotNull @NotNull MutableConfigOptions mutableOptions) 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.- Specified by:
setin interfaceMutableConfig- Parameters:
key- The configuration property.value- The value to set
-
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.- Specified by:
removein interfaceMutableConfig- Parameters:
keys- The configuration properties.
-
removeInt
Removes the specified configuration properties.- Parameters:
keys- The configuration properties.- Throws:
ConfigException- If an error occurs removing the configuration properties.
-