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

getAll() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  724be4a1_5259_b857_2bb2_ea262acfd7c4["getAll()"]
  5fe9e097_d243_2cad_d20c_db584a0f1a0a["get()"]
  724be4a1_5259_b857_2bb2_ea262acfd7c4 -->|calls| 5fe9e097_d243_2cad_d20c_db584a0f1a0a
  bfa1397e_3eb2_5a30_74f8_43c210b69ac6["isConfigurationPropertiesBean()"]
  724be4a1_5259_b857_2bb2_ea262acfd7c4 -->|calls| bfa1397e_3eb2_5a30_74f8_43c210b69ac6
  style 724be4a1_5259_b857_2bb2_ea262acfd7c4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBean.java lines 137–150

	public static Map<String, ConfigurationPropertiesBean> getAll(ApplicationContext applicationContext) {
		Assert.notNull(applicationContext, "'applicationContext' must not be null");
		if (applicationContext instanceof ConfigurableApplicationContext configurableContext) {
			return getAll(configurableContext);
		}
		Map<String, ConfigurationPropertiesBean> propertiesBeans = new LinkedHashMap<>();
		applicationContext.getBeansWithAnnotation(ConfigurationProperties.class).forEach((name, instance) -> {
			ConfigurationPropertiesBean propertiesBean = get(applicationContext, instance, name);
			if (propertiesBean != null) {
				propertiesBeans.put(name, propertiesBean);
			}
		});
		return propertiesBeans;
	}

Domain

Subdomains

Frequently Asked Questions

What does getAll() do?
getAll() is a function in the spring-boot codebase.
What does getAll() call?
getAll() calls 2 function(s): get, isConfigurationPropertiesBean.

Analyze Your Own Codebase

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

Try Supermodel Free