Home / Function/ getConfigurationProperty() — spring-boot Function Reference

getConfigurationProperty() — spring-boot Function Reference

Architecture documentation for the getConfigurationProperty() function in SpringIterableConfigurationPropertySource.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  ab6ab450_95f3_dcc1_b96e_4afd0605d482["getConfigurationProperty()"]
  b8923f53_f057_a666_68a1_d0acc9a47029["getCache()"]
  ab6ab450_95f3_dcc1_b96e_4afd0605d482 -->|calls| b8923f53_f057_a666_68a1_d0acc9a47029
  d70dcfd4_80b0_5d85_6e47_613b65f9d937["getMapped()"]
  ab6ab450_95f3_dcc1_b96e_4afd0605d482 -->|calls| d70dcfd4_80b0_5d85_6e47_613b65f9d937
  c08472d1_0523_dcc9_5df2_017ca9268c5a["get()"]
  ab6ab450_95f3_dcc1_b96e_4afd0605d482 -->|calls| c08472d1_0523_dcc9_5df2_017ca9268c5a
  1ce75a35_5af1_68b8_9853_1aa02c683160["getPropertySource()"]
  ab6ab450_95f3_dcc1_b96e_4afd0605d482 -->|calls| 1ce75a35_5af1_68b8_9853_1aa02c683160
  style ab6ab450_95f3_dcc1_b96e_4afd0605d482 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/SpringIterableConfigurationPropertySource.java lines 104–121

	@Override
	public @Nullable ConfigurationProperty getConfigurationProperty(@Nullable ConfigurationPropertyName name) {
		if (name == null) {
			return null;
		}
		ConfigurationProperty configurationProperty = super.getConfigurationProperty(name);
		if (configurationProperty != null) {
			return configurationProperty;
		}
		for (String candidate : getCache().getMapped(name)) {
			Object value = getPropertySourceProperty(candidate);
			if (value != null) {
				Origin origin = PropertySourceOrigin.get(getPropertySource(), candidate);
				return ConfigurationProperty.of(this, name, value, origin);
			}
		}
		return null;
	}

Domain

Subdomains

Frequently Asked Questions

What does getConfigurationProperty() do?
getConfigurationProperty() is a function in the spring-boot codebase.
What does getConfigurationProperty() call?
getConfigurationProperty() calls 4 function(s): get, getCache, getMapped, getPropertySource.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free