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

save() — spring-boot Function Reference

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

Function java GradlePlugin DslExtensions calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  448cc760_4501_2ee6_80eb_6f34faea5bf6["save()"]
  5f220dcb_7370_3153_7748_5e7b9c186612["applyTo()"]
  5f220dcb_7370_3153_7748_5e7b9c186612 -->|calls| 448cc760_4501_2ee6_80eb_6f34faea5bf6
  b112ae60_f032_da56_1daf_41372acc3d8e["getRegistryMap()"]
  448cc760_4501_2ee6_80eb_6f34faea5bf6 -->|calls| b112ae60_f032_da56_1daf_41372acc3d8e
  6c7da0fd_a0c3_2cbd_17c1_6d8678eff238["asBytes()"]
  448cc760_4501_2ee6_80eb_6f34faea5bf6 -->|calls| 6c7da0fd_a0c3_2cbd_17c1_6d8678eff238
  fc4ea8fc_b348_1f19_73de_90a514b41a29["RequireNewOrMatchingContentFileHandler()"]
  448cc760_4501_2ee6_80eb_6f34faea5bf6 -->|calls| fc4ea8fc_b348_1f19_73de_90a514b41a29
  style 448cc760_4501_2ee6_80eb_6f34faea5bf6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/logging/logback/SpringBootJoranConfigurator.java lines 404–415

		private void save(GenerationContext generationContext) {
			Map<String, String> registryMap = getRegistryMap();
			byte[] rules = asBytes(registryMap);
			generationContext.getGeneratedFiles()
				.handleFile(Kind.RESOURCE, RESOURCE_LOCATION, new RequireNewOrMatchingContentFileHandler(rules));
			generationContext.getRuntimeHints().resources().registerPattern(RESOURCE_LOCATION);
			for (String ruleClassName : registryMap.values()) {
				generationContext.getRuntimeHints()
					.reflection()
					.registerType(TypeReference.of(ruleClassName), MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS);
			}
		}

Domain

Subdomains

Calls

  • RequireNewOrMatchingContentFileHandler()
  • asBytes()
  • getRegistryMap()

Called By

  • applyTo()

Frequently Asked Questions

What does save() do?
save() is a function in the spring-boot codebase.
What does save() call?
save() calls 3 function(s): RequireNewOrMatchingContentFileHandler, asBytes, getRegistryMap.
What calls save()?
save() is called by 1 function(s): applyTo.

Analyze Your Own Codebase

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

Try Supermodel Free