java.lang.Object
dev.orne.config.impl.AbstractConfigBuilderImpl<PropertiesConfigBuilder>
dev.orne.config.impl.PropertiesConfigBuilderImpl
- All Implemented Interfaces:
ConfigBuilder<PropertiesConfigBuilder>,MutableCapableConfigBuilder<PropertiesConfigBuilder>,PropertiesConfigBaseBuilder<PropertiesConfigBuilder>,PropertiesConfigBuilder
@API(status=INTERNAL,
since="1.0")
public class PropertiesConfigBuilderImpl
extends AbstractConfigBuilderImpl<PropertiesConfigBuilder>
implements PropertiesConfigBuilder
Implementation of
Properties based immutable 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.AbstractConfigBuilderImpl
options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull PropertiesConfigBuilderAdds the specified configuration properties to the configuration properties.@NotNull PropertiesConfigBuilderadd(@NotNull Properties values) Adds the specified configuration properties to the configuration properties.@NotNull PropertiesConfigImplbuild()Creates the configuration instance.@NotNull PropertiesConfigBuilderLoads the configuration properties from the specified file.@NotNull PropertiesConfigBuilderLoads the configuration properties from the specified ClassLoader resource.@NotNull PropertiesConfigBuilderLoads the configuration properties from the specified URL.@NotNull PropertiesConfigBuilderLoads the configuration properties from the file in the specified path.@NotNull PropertiesMutableConfigBuilderImplmutable()Makes the configuration instance mutable.Methods 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, withVariableResolution
-
Field Details
-
propertyOptions
The properties based configuration options.
-
-
Constructor Details
-
PropertiesConfigBuilderImpl
public PropertiesConfigBuilderImpl()Empty constructor.
-
-
Method Details
-
add
Adds the specified configuration properties to the configuration properties.- Specified by:
addin interfacePropertiesConfigBaseBuilder<PropertiesConfigBuilder>- Parameters:
values- The configuration properties.- Returns:
- This instance, for method chaining.
-
add
Adds the specified configuration properties to the configuration properties.- Specified by:
addin interfacePropertiesConfigBaseBuilder<PropertiesConfigBuilder>- 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<PropertiesConfigBuilder>- 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<PropertiesConfigBuilder>- Parameters:
path- The file path.- Returns:
- This instance, for method chaining.
-
load
Loads the configuration properties from the specified file.- Specified by:
loadin interfacePropertiesConfigBaseBuilder<PropertiesConfigBuilder>- 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<PropertiesConfigBuilder>- Parameters:
url- The URL to load.- Returns:
- This instance, for method chaining.
-
mutable
Makes the configuration instance mutable.- Specified by:
mutablein interfaceMutableCapableConfigBuilder<PropertiesConfigBuilder>- Specified by:
mutablein interfacePropertiesConfigBuilder- Returns:
- This instance, for method chaining.
-
build
Creates the configuration instance.- Specified by:
buildin interfaceConfigBuilder<PropertiesConfigBuilder>- Returns:
- The configuration instance.
-