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

from() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  cfd70cbc_b947_e4b0_3ce5_9b7a30227a98["from()"]
  ab219561_01e8_5008_372c_653a0f6f4527["isSystemEnvironmentPropertySource()"]
  cfd70cbc_b947_e4b0_3ce5_9b7a30227a98 -->|calls| ab219561_01e8_5008_372c_653a0f6f4527
  f14d74fe_12d6_174c_51d9_6f81fa089c74["isFullEnumerable()"]
  cfd70cbc_b947_e4b0_3ce5_9b7a30227a98 -->|calls| f14d74fe_12d6_174c_51d9_6f81fa089c74
  bafe1617_796c_897b_43ba_a0bf194323e8["SpringConfigurationPropertySource()"]
  cfd70cbc_b947_e4b0_3ce5_9b7a30227a98 -->|calls| bafe1617_796c_897b_43ba_a0bf194323e8
  style cfd70cbc_b947_e4b0_3ce5_9b7a30227a98 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/SpringConfigurationPropertySource.java lines 171–179

	static SpringConfigurationPropertySource from(PropertySource<?> source) {
		Assert.notNull(source, "'source' must not be null");
		boolean systemEnvironmentSource = isSystemEnvironmentPropertySource(source);
		PropertyMapper[] mappers = (!systemEnvironmentSource) ? DEFAULT_MAPPERS : SYSTEM_ENVIRONMENT_MAPPERS;
		return (!isFullEnumerable(source))
				? new SpringConfigurationPropertySource(source, systemEnvironmentSource, mappers)
				: new SpringIterableConfigurationPropertySource((EnumerablePropertySource<?>) source,
						systemEnvironmentSource, mappers);
	}

Domain

Subdomains

Calls

  • SpringConfigurationPropertySource()
  • isFullEnumerable()
  • isSystemEnvironmentPropertySource()

Frequently Asked Questions

What does from() do?
from() is a function in the spring-boot codebase.
What does from() call?
from() calls 3 function(s): SpringConfigurationPropertySource, isFullEnumerable, isSystemEnvironmentPropertySource.

Analyze Your Own Codebase

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

Try Supermodel Free