java.lang.Object
dev.orne.config.impl.AbstractConfig
dev.orne.config.impl.AbstractMutableConfig
dev.orne.config.impl.AbstractWatchableConfig
dev.orne.config.impl.JsonMutableConfigImpl
dev.orne.config.impl.YamlMutableConfigImpl
- All Implemented Interfaces:
Config,FileMutableConfig,FileWatchableConfig,MutableConfig,WatchableConfig
Jackson
ObjectNode based mutable configuration
for YAML files.- Since:
- 1.0
- Version:
- 1.0, 2025-07
- Author:
- (w) Iker Hernaez
- See Also:
-
ConfigObjectNode
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.orne.config.WatchableConfig
WatchableConfig.Listener -
Field Summary
Fields inherited from class dev.orne.config.impl.AbstractConfig
KEY_BLANK_ERR -
Constructor Summary
ConstructorsConstructorDescriptionYamlMutableConfigImpl(@NotNull ConfigOptions options, @NotNull MutableConfigOptions mutableOptions, @NotNull YamlConfigOptions yamlOptions) Creates a new instance. -
Method Summary
Methods inherited from class dev.orne.config.impl.JsonMutableConfigImpl
containsInt, getInt, getJsonObject, getKeysInt, getPropertySeparator, isEmptyInt, propertyToPointer, removeInt, setIntMethods inherited from class dev.orne.config.impl.AbstractWatchableConfig
addListener, getEvents, notifyLocalChanges, notifyParentChanges, remove, removeListener, setMethods inherited from class dev.orne.config.impl.AbstractMutableConfig
getEncoderMethods inherited from class dev.orne.config.impl.AbstractConfig
contains, get, getDecoder, getDecorator, getKeys, getParent, getResolver, getUndecored, isEmpty, 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.FileMutableConfig
save, save, save, saveMethods inherited from interface dev.orne.config.WatchableConfig
addListener, removeListener, subset
-
Constructor Details
-
YamlMutableConfigImpl
public YamlMutableConfigImpl(@NotNull @NotNull ConfigOptions options, @NotNull @NotNull MutableConfigOptions mutableOptions, @NotNull @NotNull YamlConfigOptions yamlOptions) Creates a new instance.- Parameters:
options- The configuration builder options.mutableOptions- The mutable configuration builder options.yamlOptions- The YAML based configuration builder options.
-
-
Method Details
-
save
Saves the configuration properties to the specified writer.- Specified by:
savein interfaceFileMutableConfig- Overrides:
savein classJsonMutableConfigImpl- Parameters:
destination- The destination writer.- Throws:
IOException- If an I/O error occurs.
-