java.lang.Object
dev.orne.config.impl.AbstractConfigBuilderImpl<S>
dev.orne.config.impl.AbstractMutableConfigBuilderImpl<PropertiesMutableConfigBuilder>
dev.orne.config.impl.PropertiesMutableConfigBuilderImpl
- All Implemented Interfaces:
ConfigBuilder<PropertiesMutableConfigBuilder>,MutableConfigBuilder<PropertiesMutableConfigBuilder>,PropertiesConfigBaseBuilder<PropertiesMutableConfigBuilder>,PropertiesMutableConfigBuilder
@API(status=INTERNAL,
since="1.0")
public class PropertiesMutableConfigBuilderImpl
extends AbstractMutableConfigBuilderImpl<PropertiesMutableConfigBuilder>
implements PropertiesMutableConfigBuilder
Implementation of
Properties based mutable configuration builder.- Since:
- 1.0
- Version:
- 1.0, 2025-05
- Author:
- (w) Iker Hernaez
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NotNull PropertiesConfigOptionsThe properties based configuration options.Fields inherited from class dev.orne.config.impl.AbstractMutableConfigBuilderImpl
mutableOptionsFields inherited from class dev.orne.config.impl.AbstractConfigBuilderImpl
options -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPropertiesMutableConfigBuilderImpl(@NotNull ConfigOptions options, @NotNull MutableConfigOptions mutableOptions, @NotNull PropertiesConfigOptions propertyOptions) Copy constructor. -
Method Summary
Modifier and TypeMethodDescription@NotNull PropertiesMutableConfigBuilderAdds the specified configuration properties to the configuration properties.@NotNull PropertiesMutableConfigBuilderadd(@NotNull Properties values) Adds the specified configuration properties to the configuration properties.@NotNull PropertiesMutableConfigImplbuild()Creates the configuration instance.@NotNull PropertiesMutableConfigBuilderLoads the configuration properties from the specified file.@NotNull PropertiesMutableConfigBuilderLoads the configuration properties from the specified ClassLoader resource.@NotNull PropertiesMutableConfigBuilderLoads the configuration properties from the specified URL.@NotNull PropertiesMutableConfigBuilderLoads the configuration properties from the file in the specified path.Methods inherited from class dev.orne.config.impl.AbstractMutableConfigBuilderImpl
withEncoderMethods inherited from class dev.orne.config.impl.AbstractConfigBuilderImpl
thisBuilder, withDecoder, withDecorator, withEncryption, withOverrideParentProperties, withParent, withVariableResolutionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.orne.config.ConfigBuilder
as, withDecoder, withDecorator, withEncryption, withOverrideParentProperties, withParent, withParent, withVariableResolutionMethods inherited from interface dev.orne.config.MutableConfigBuilder
withEncoder
-
Field Details
-
propertyOptions
The properties based configuration options.
-
-
Constructor Details
-
PropertiesMutableConfigBuilderImpl
protected PropertiesMutableConfigBuilderImpl(@NotNull @NotNull ConfigOptions options, @NotNull @NotNull MutableConfigOptions mutableOptions, @NotNull @NotNull PropertiesConfigOptions propertyOptions) Copy constructor.- Parameters:
options- The configuration options to copy.mutableOptions- The mutable configuration options to copy.propertyOptions- The properties based configuration options to copy.
-
-
Method Details
-
add
Adds the specified configuration properties to the configuration properties.- Specified by:
addin interfacePropertiesConfigBaseBuilder<PropertiesMutableConfigBuilder>- Parameters:
values- The configuration properties.- Returns:
- This instance, for method chaining.
-
add
@NotNull public @NotNull PropertiesMutableConfigBuilder add(@NotNull @NotNull Map<String, String> values) Adds the specified configuration properties to the configuration properties.- Specified by:
addin interfacePropertiesConfigBaseBuilder<PropertiesMutableConfigBuilder>- Parameters:
values- The configuration properties.- Returns:
- This instance, for method chaining.
-
load
Loads the configuration properties from the specified ClassLoader resource.- Specified by:
loadin interfacePropertiesConfigBaseBuilder<PropertiesMutableConfigBuilder>- Parameters:
path- The ClassLoader resource path.- Returns:
- This instance, for method chaining.
-
load
Loads the configuration properties from the file in the specified path.- Specified by:
loadin interfacePropertiesConfigBaseBuilder<PropertiesMutableConfigBuilder>- Parameters:
path- The file path.- Returns:
- This instance, for method chaining.
-
load
Loads the configuration properties from the specified file.- Specified by:
loadin interfacePropertiesConfigBaseBuilder<PropertiesMutableConfigBuilder>- Parameters:
file- The file to load.- Returns:
- This instance, for method chaining.
-
load
Loads the configuration properties from the specified URL.- Specified by:
loadin interfacePropertiesConfigBaseBuilder<PropertiesMutableConfigBuilder>- Parameters:
url- The URL to load.- Returns:
- This instance, for method chaining.
-
build
Creates the configuration instance.- Specified by:
buildin interfaceConfigBuilder<PropertiesMutableConfigBuilder>- Specified by:
buildin interfaceMutableConfigBuilder<PropertiesMutableConfigBuilder>- Specified by:
buildin interfacePropertiesMutableConfigBuilder- Returns:
- The configuration instance.
-