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

compile() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6618d3a9_ddb1_239d_57b4_ec3e825ef29e["compile()"]
  ce858383_5c22_6030_924a_be9a824a92ab["aotContributedInitializerBindsValueObject()"]
  ce858383_5c22_6030_924a_be9a824a92ab -->|calls| 6618d3a9_ddb1_239d_57b4_ec3e825ef29e
  a3cb4e31_e065_846b_1395_d9529fc251bb["aotContributedInitializerBindsValueObjectWithSpecificConstructor()"]
  a3cb4e31_e065_846b_1395_d9529fc251bb -->|calls| 6618d3a9_ddb1_239d_57b4_ec3e825ef29e
  3d82043b_3d56_f6df_0c44_2e925cdc597d["aotContributedInitializerBindsJavaBean()"]
  3d82043b_3d56_f6df_0c44_2e925cdc597d -->|calls| 6618d3a9_ddb1_239d_57b4_ec3e825ef29e
  fb87ec2a_2a2a_6f4e_ae3e_5522c24e7688["aotContributedInitializerBindsScannedValueObject()"]
  fb87ec2a_2a2a_6f4e_ae3e_5522c24e7688 -->|calls| 6618d3a9_ddb1_239d_57b4_ec3e825ef29e
  eba418e4_a5de_8a5c_654e_1893f0c64980["aotContributedInitializerBindsScannedJavaBean()"]
  eba418e4_a5de_8a5c_654e_1893f0c64980 -->|calls| 6618d3a9_ddb1_239d_57b4_ec3e825ef29e
  style 6618d3a9_ddb1_239d_57b4_ec3e825ef29e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesBeanRegistrationAotProcessorTests.java lines 158–173

	@SuppressWarnings("unchecked")
	private void compile(GenericApplicationContext context, Consumer<GenericApplicationContext> freshContext) {
		TestGenerationContext generationContext = new TestGenerationContext(TestTarget.class);
		ClassName className = new ApplicationContextAotGenerator().processAheadOfTime(context, generationContext);
		generationContext.writeGeneratedContent();
		TestCompiler.forSystem()
			.withCompilerOptions("-Xlint:deprecation,removal", "-Werror")
			.with(generationContext)
			.compile((compiled) -> {
				GenericApplicationContext freshApplicationContext = new GenericApplicationContext();
				ApplicationContextInitializer<GenericApplicationContext> initializer = compiled
					.getInstance(ApplicationContextInitializer.class, className.toString());
				initializer.initialize(freshApplicationContext);
				freshContext.accept(freshApplicationContext);
			});
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does compile() do?
compile() is a function in the spring-boot codebase.
What calls compile()?
compile() is called by 5 function(s): aotContributedInitializerBindsJavaBean, aotContributedInitializerBindsScannedJavaBean, aotContributedInitializerBindsScannedValueObject, aotContributedInitializerBindsValueObject, aotContributedInitializerBindsValueObjectWithSpecificConstructor.

Analyze Your Own Codebase

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

Try Supermodel Free