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

contributionOfBasicModel() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  be5bc046_7461_44c1_eb40_bbe86152e3c0["contributionOfBasicModel()"]
  7ee60c15_c662_037a_50c0_f741c27ef6e0["applyContribution()"]
  be5bc046_7461_44c1_eb40_bbe86152e3c0 -->|calls| 7ee60c15_c662_037a_50c0_f741c27ef6e0
  482aab9b_a1e4_f098_bd02_d95e2288328e["resource()"]
  be5bc046_7461_44c1_eb40_bbe86152e3c0 -->|calls| 482aab9b_a1e4_f098_bd02_d95e2288328e
  6e28ed44_b101_117d_a025_f9d025e1f4fe["namesOf()"]
  be5bc046_7461_44c1_eb40_bbe86152e3c0 -->|calls| 6e28ed44_b101_117d_a025_f9d025e1f4fe
  e24e2ad8_3e06_59e8_9128_fb1e09cbaca6["load()"]
  be5bc046_7461_44c1_eb40_bbe86152e3c0 -->|calls| e24e2ad8_3e06_59e8_9128_fb1e09cbaca6
  style be5bc046_7461_44c1_eb40_bbe86152e3c0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackConfigurationAotContributionTests.java lines 86–103

	@Test
	void contributionOfBasicModel() {
		TestGenerationContext generationContext = applyContribution(new Model());
		InMemoryGeneratedFiles generatedFiles = generationContext.getGeneratedFiles();
		assertThat(generatedFiles).has(resource("META-INF/spring/logback-model"));
		assertThat(generatedFiles).has(resource("META-INF/spring/logback-pattern-rules"));
		SerializationHints serializationHints = generationContext.getRuntimeHints().serialization();
		assertThat(serializationHints.javaSerializationHints()
			.map(JavaSerializationHint::getType)
			.map(TypeReference::getName))
			.containsExactlyInAnyOrder(namesOf(Model.class, ArrayList.class, Boolean.class, Integer.class));
		assertThat(generationContext.getRuntimeHints().reflection().typeHints()).isEmpty();
		InputStreamSource generatedFile = generatedFiles.getGeneratedFile(Kind.RESOURCE,
				"META-INF/spring/logback-pattern-rules");
		assertThat(generatedFile).isNotNull();
		Properties patternRules = load(generatedFile);
		assertThat(patternRules).isEmpty();
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does contributionOfBasicModel() do?
contributionOfBasicModel() is a function in the spring-boot codebase.
What does contributionOfBasicModel() call?
contributionOfBasicModel() calls 4 function(s): applyContribution, load, namesOf, resource.

Analyze Your Own Codebase

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

Try Supermodel Free