java.lang.Object
dev.orne.config.impl.SpringEnvironmentConfigOptions
Options of Spring
Environment based configuration builder.- Since:
- 1.0
- Version:
- 1.0, 2025-09
- Author:
- (w) Iker Hernaez
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor.SpringEnvironmentConfigOptions(@NotNull SpringEnvironmentConfigOptions copy) Copy constructor. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.springframework.core.env.EnvironmentReturns the Spring environment.booleanReturns if the configuration instance must support property keys iteration.voidsetEnvironment(org.springframework.core.env.Environment env) Sets the Spring environment.voidsetIterableKeys(boolean iterable) Sets if the configuration instance must support property keys iteration.
-
Constructor Details
-
SpringEnvironmentConfigOptions
public SpringEnvironmentConfigOptions()Empty constructor. -
SpringEnvironmentConfigOptions
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:
trueif the configuration instance must support property keys iteration,falseotherwise.
-
setIterableKeys
public void setIterableKeys(boolean iterable) Sets if the configuration instance must support property keys iteration.Note that extracting property keys from the
EnumerablePropertySourcesof the environment can be an expensive operation, so this option isfalseby default.- Parameters:
iterable-trueif the configuration instance must support property keys iteration,falseotherwise.
-