Module dev.orne.config
Package dev.orne.config
Interface JsonConfigBaseBuilder<S extends JsonConfigBaseBuilder<S>>
- Type Parameters:
S- The concrete type of the builder.
- All Superinterfaces:
ConfigBuilder<S>
- All Known Subinterfaces:
JsonConfigBuilder,JsonMutableConfigBuilder
- All Known Implementing Classes:
JsonConfigBuilderImpl,JsonMutableConfigBuilderImpl
@API(status=STABLE,
since="1.0")
public interface JsonConfigBaseBuilder<S extends JsonConfigBaseBuilder<S>>
extends ConfigBuilder<S>
JSON files based configuration base builder.
- Since:
- 1.0
- Version:
- 1.0, 2025-07
- Author:
- (w) Iker Hernaez
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default configuration nested properties separator. -
Method Summary
Modifier and TypeMethodDescriptionAdds the specified custom properties to the configuration properties.Loads the configuration properties from the specified file.Loads the configuration properties from the specified ClassLoader resource.Loads the configuration properties from the specified URL.Loads the configuration properties from the file in the specified path.withSeparator(@NotEmpty String separator) Sets the configuration nested properties separator.Methods inherited from interface dev.orne.config.ConfigBuilder
as, build, withDecoder, withDecorator, withEncryption, withOverrideParentProperties, withParent, withParent, withVariableResolution
-
Field Details
-
DEFAULT_SEPARATOR
The default configuration nested properties separator.- See Also:
-
-
Method Details
-
withSeparator
Sets the configuration nested properties separator.- Parameters:
separator- The configuration nested properties separator.- Returns:
- This instance, for method chaining.
-
add
Adds the specified custom properties to the configuration properties.Note that property keys will be processed with the configured nested properties separator.
- Parameters:
values- The configuration properties.- Returns:
- This instance, for method chaining.
-
load
Loads the configuration properties from the specified ClassLoader resource.- Parameters:
path- The ClassLoader resource path.- Returns:
- This instance, for method chaining.
-
load
Loads the configuration properties from the file in the specified path.- Parameters:
path- The file path.- Returns:
- This instance, for method chaining.
-
load
Loads the configuration properties from the specified file.- Parameters:
file- The file to load.- Returns:
- This instance, for method chaining.
-
load
Loads the configuration properties from the specified URL.- Parameters:
url- The URL to load.- Returns:
- This instance, for method chaining.
-