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

getContextId() — spring-boot Function Reference

Architecture documentation for the getContextId() function in ContextIdApplicationContextInitializer.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  74206439_1a70_bab6_c25d_9132ea5bd7a7["getContextId()"]
  4bcad634_dfc2_35e8_c53c_8f44e56befe7["initialize()"]
  4bcad634_dfc2_35e8_c53c_8f44e56befe7 -->|calls| 74206439_1a70_bab6_c25d_9132ea5bd7a7
  72e3790d_4d7d_a2bc_66b2_cdb7d10e9a9a["createChildId()"]
  74206439_1a70_bab6_c25d_9132ea5bd7a7 -->|calls| 72e3790d_4d7d_a2bc_66b2_cdb7d10e9a9a
  002ac290_140a_b1d5_aef3_7f955b31ac4a["ContextId()"]
  74206439_1a70_bab6_c25d_9132ea5bd7a7 -->|calls| 002ac290_140a_b1d5_aef3_7f955b31ac4a
  55139620_6f33_be58_9a92_ca29c49d7b10["getApplicationId()"]
  74206439_1a70_bab6_c25d_9132ea5bd7a7 -->|calls| 55139620_6f33_be58_9a92_ca29c49d7b10
  style 74206439_1a70_bab6_c25d_9132ea5bd7a7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/ContextIdApplicationContextInitializer.java lines 59–65

	private ContextId getContextId(ConfigurableApplicationContext applicationContext) {
		ApplicationContext parent = applicationContext.getParent();
		if (parent != null && parent.containsBean(ContextId.class.getName())) {
			return parent.getBean(ContextId.class).createChildId();
		}
		return new ContextId(getApplicationId(applicationContext.getEnvironment()));
	}

Domain

Subdomains

Calls

  • ContextId()
  • createChildId()
  • getApplicationId()

Called By

  • initialize()

Frequently Asked Questions

What does getContextId() do?
getContextId() is a function in the spring-boot codebase.
What does getContextId() call?
getContextId() calls 3 function(s): ContextId, createChildId, getApplicationId.
What calls getContextId()?
getContextId() is called by 1 function(s): initialize.

Analyze Your Own Codebase

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

Try Supermodel Free