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

processAheadOfTime() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  a2d46e2b_4d38_d2c7_76d4_70a4c9d68d73["processAheadOfTime()"]
  f7e9ddde_2634_c57e_57b9_2c188cc789b6["getType()"]
  a2d46e2b_4d38_d2c7_76d4_70a4c9d68d73 -->|calls| f7e9ddde_2634_c57e_57b9_2c188cc789b6
  19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"]
  a2d46e2b_4d38_d2c7_76d4_70a4c9d68d73 -->|calls| 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78
  a10e7a13_4c54_c535_501e_7f629229d11d["withBindMethod()"]
  a2d46e2b_4d38_d2c7_76d4_70a4c9d68d73 -->|calls| a10e7a13_4c54_c535_501e_7f629229d11d
  e33f0c95_821f_1790_2d76_a6cec1674354["ConfigurationPropertiesReflectionHintsContribution()"]
  a2d46e2b_4d38_d2c7_76d4_70a4c9d68d73 -->|calls| e33f0c95_821f_1790_2d76_a6cec1674354
  style a2d46e2b_4d38_d2c7_76d4_70a4c9d68d73 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBeanFactoryInitializationAotProcessor.java lines 45–61

	@Override
	public @Nullable ConfigurationPropertiesReflectionHintsContribution processAheadOfTime(
			ConfigurableListableBeanFactory beanFactory) {
		String[] beanNames = beanFactory.getBeanNamesForAnnotation(ConfigurationProperties.class);
		List<Bindable<?>> bindables = new ArrayList<>();
		for (String beanName : beanNames) {
			Class<?> beanType = beanFactory.getType(beanName, false);
			if (beanType != null) {
				BindMethod bindMethod = beanFactory.containsBeanDefinition(beanName)
						? (BindMethod) beanFactory.getBeanDefinition(beanName).getAttribute(BindMethod.class.getName())
						: null;
				bindables.add(Bindable.of(ClassUtils.getUserClass(beanType))
					.withBindMethod((bindMethod != null) ? bindMethod : BindMethod.JAVA_BEAN));
			}
		}
		return (!bindables.isEmpty()) ? new ConfigurationPropertiesReflectionHintsContribution(bindables) : null;
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does processAheadOfTime() do?
processAheadOfTime() is a function in the spring-boot codebase.
What does processAheadOfTime() call?
processAheadOfTime() calls 4 function(s): ConfigurationPropertiesReflectionHintsContribution, getType, of, withBindMethod.

Analyze Your Own Codebase

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

Try Supermodel Free