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

writeTo() — spring-boot Function Reference

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

Function java GradlePlugin DslExtensions calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  4891997e_0afa_ad02_52ab_f0459afe093d["writeTo()"]
  5f220dcb_7370_3153_7748_5e7b9c186612["applyTo()"]
  5f220dcb_7370_3153_7748_5e7b9c186612 -->|calls| 4891997e_0afa_ad02_52ab_f0459afe093d
  f5735243_71d9_2527_9352_a865a39f5404["serializeModel()"]
  4891997e_0afa_ad02_52ab_f0459afe093d -->|calls| f5735243_71d9_2527_9352_a865a39f5404
  fc4ea8fc_b348_1f19_73de_90a514b41a29["RequireNewOrMatchingContentFileHandler()"]
  4891997e_0afa_ad02_52ab_f0459afe093d -->|calls| fc4ea8fc_b348_1f19_73de_90a514b41a29
  ecb656c0_e183_7411_112c_23d63b388fe6["serializationTypes()"]
  4891997e_0afa_ad02_52ab_f0459afe093d -->|calls| ecb656c0_e183_7411_112c_23d63b388fe6
  0f48f13a_e0e6_be39_3c75_c88ae12ffd86["reflectionTypes()"]
  4891997e_0afa_ad02_52ab_f0459afe093d -->|calls| 0f48f13a_e0e6_be39_3c75_c88ae12ffd86
  style 4891997e_0afa_ad02_52ab_f0459afe093d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

		private void writeTo(GenerationContext generationContext) {
			byte[] serializedModel = serializeModel();
			generationContext.getGeneratedFiles()
				.handleFile(Kind.RESOURCE, MODEL_RESOURCE_LOCATION,
						new RequireNewOrMatchingContentFileHandler(serializedModel));
			generationContext.getRuntimeHints().resources().registerPattern(MODEL_RESOURCE_LOCATION);
			SerializationHints serializationHints = generationContext.getRuntimeHints().serialization();
			serializationTypes(this.model).forEach(serializationHints::registerType);
			reflectionTypes(this.model).forEach((type) -> generationContext.getRuntimeHints()
				.reflection()
				.registerType(TypeReference.of(type), MemberCategory.INVOKE_PUBLIC_METHODS,
						MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS));
		}

Domain

Subdomains

Calls

  • RequireNewOrMatchingContentFileHandler()
  • reflectionTypes()
  • serializationTypes()
  • serializeModel()

Called By

  • applyTo()

Frequently Asked Questions

What does writeTo() do?
writeTo() is a function in the spring-boot codebase.
What does writeTo() call?
writeTo() calls 4 function(s): RequireNewOrMatchingContentFileHandler, reflectionTypes, serializationTypes, serializeModel.
What calls writeTo()?
writeTo() 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