Class SpringEnvironmentConfigOptions

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

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

    • SpringEnvironmentConfigOptions

      public SpringEnvironmentConfigOptions()
      Empty constructor.
    • SpringEnvironmentConfigOptions

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

    • getEnvironment

      @NotNull public @NotNull org.springframework.core.env.Environment getEnvironment()
      Returns the Spring environment.
      Returns:
      The Spring environment.
    • setEnvironment

      public void setEnvironment(org.springframework.core.env.Environment env)
      Sets the Spring environment.
      Parameters:
      env - The Spring environment.
    • isIterableKeys

      public boolean isIterableKeys()
      Returns if the configuration instance must support property keys iteration.
      Returns:
      true if the configuration instance must support property keys iteration, false otherwise.
    • setIterableKeys

      public void setIterableKeys(boolean iterable)
      Sets if the configuration instance must support property keys iteration.

      Note that extracting property keys from the EnumerablePropertySources of the environment can be an expensive operation, so this option is false by default.

      Parameters:
      iterable - true if the configuration instance must support property keys iteration, false otherwise.