java.lang.Object
dev.orne.config.DelegatedConfig
dev.orne.config.DelegatedMutableConfig
- All Implemented Interfaces:
Config,MutableConfig
- Direct Known Subclasses:
DelegatedWatchableConfig
@API(status=STABLE,
since="1.0")
public class DelegatedMutableConfig
extends DelegatedConfig
implements MutableConfig
A mutable configuration that delegates all operations to another
configuration.
This class is useful for creating a proxy or wrapper around an existing
configuration instance, allowing for additional behavior or modifications
without changing the original configuration.
- Since:
- 1.0
- Version:
- 1.0, 2025-08
- Author:
- (w) Iker Hernaez
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatedMutableConfig(@NotNull MutableConfig delegate) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull MutableConfigReturns the delegate configuration.voidRemoves the specified configuration properties.voidSets the value of the configuration parameter.voidSets the value of the configuration parameter.voidSets the value of the configuration parameter.voidSets the value of the specified configuration property.Methods inherited from class dev.orne.config.DelegatedConfig
contains, get, get, get, getBoolean, getBoolean, getBoolean, getInteger, getInteger, getInteger, getKeys, getKeys, getKeys, getLong, getLong, getLong, getParent, getUndecored, isEmptyMethods 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
subset
-
Constructor Details
-
DelegatedMutableConfig
Creates a new instance.- Parameters:
delegate- The configuration to delegate to.
-
-
Method Details
-
getDelegate
Returns the delegate configuration.- Overrides:
getDelegatein classDelegatedConfig- Returns:
- The delegate configuration.
-
set
Sets the value of the specified configuration property.- Specified by:
setin interfaceMutableConfig- Parameters:
key- The configuration property.value- The value to set
-
set
Sets the value of the configuration parameter.- Specified by:
setin interfaceMutableConfig- Parameters:
key- The configuration property.value- The value to set
-
set
Sets the value of the configuration parameter.- Specified by:
setin interfaceMutableConfig- Parameters:
key- The configuration property.value- The value to set
-
set
Sets the value of the configuration parameter.- Specified by:
setin interfaceMutableConfig- Parameters:
key- The configuration property.value- The value to set
-
remove
Removes the specified configuration properties.- Specified by:
removein interfaceMutableConfig- Parameters:
keys- The configuration properties.
-