Class PropertiesConfigOptions

java.lang.Object
dev.orne.config.impl.PropertiesConfigOptions

@API(status=INTERNAL, since="1.0") public class PropertiesConfigOptions extends Object
Options of Properties based configuration builder.
Since:
1.0
Version:
1.0, 2025-05
Author:
(w) Iker Hernaez
See Also:
  • Constructor Details

    • PropertiesConfigOptions

      public PropertiesConfigOptions()
      Empty constructor.
    • PropertiesConfigOptions

      public PropertiesConfigOptions(@NotNull @NotNull PropertiesConfigOptions copy)
      Copy constructor.
      Parameters:
      copy - The instance to copy.
  • Method Details

    • getProperties

      @NotNull public @NotNull Properties getProperties()
      Returns the configuration properties.
      Returns:
      The configuration properties.
    • add

      public void add(@NotNull @NotNull Properties values)
      Adds the specified configuration properties to the configuration properties.
      Parameters:
      values - The configuration properties.
    • add

      public void add(@NotNull @NotNull Map<@NotEmpty String,@NotNull String> values)
      Adds the specified configuration properties to the configuration properties.
      Parameters:
      values - The configuration properties.
    • load

      public void load(@NotNull @NotNull String path)
      Loads the configuration properties from the specified ClassLoader resource.
      Parameters:
      path - The ClassLoader resource path.
    • load

      public void load(@NotNull @NotNull Path path)
      Loads the configuration properties from the file in the specified path.
      Parameters:
      path - The file path.
    • load

      public void load(@NotNull @NotNull File file)
      Loads the configuration properties from the specified file.
      Parameters:
      file - The file to load.
    • load

      public void load(@NotNull @NotNull URL url)
      Loads the configuration properties from the specified URL.
      Parameters:
      url - The URL to load.