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

initialize() — spring-boot Function Reference

Architecture documentation for the initialize() function in WebApplicationContextInitializer.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 3 called by 2

Entity Profile

Dependency Diagram

graph TD
  0b0cf05f_b17a_262c_8873_d45e2b74ef45["initialize()"]
  3a955c5f_0766_fa84_6948_c3ebf460f6ed["load()"]
  3a955c5f_0766_fa84_6948_c3ebf460f6ed -->|calls| 0b0cf05f_b17a_262c_8873_d45e2b74ef45
  11956b3e_6e5e_fb42_3523_1b06dc155ebd["create()"]
  11956b3e_6e5e_fb42_3523_1b06dc155ebd -->|calls| 0b0cf05f_b17a_262c_8873_d45e2b74ef45
  c0a3cc9a_860d_c1c8_588c_7e5caed4f467["prepareWebApplicationContext()"]
  0b0cf05f_b17a_262c_8873_d45e2b74ef45 -->|calls| c0a3cc9a_860d_c1c8_588c_7e5caed4f467
  79f394e0_8ea4_327d_20c5_0251a7a40b0a["registerApplicationScope()"]
  0b0cf05f_b17a_262c_8873_d45e2b74ef45 -->|calls| 79f394e0_8ea4_327d_20c5_0251a7a40b0a
  bfc26560_bb28_1397_3039_f2e3698033ef["ServletContextInitializerBeans()"]
  0b0cf05f_b17a_262c_8873_d45e2b74ef45 -->|calls| bfc26560_bb28_1397_3039_f2e3698033ef
  style 0b0cf05f_b17a_262c_8873_d45e2b74ef45 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/web/context/servlet/WebApplicationContextInitializer.java lines 48–56

	public void initialize(ServletContext servletContext) throws ServletException {
		prepareWebApplicationContext(servletContext);
		registerApplicationScope(servletContext, this.context.getBeanFactory());
		WebApplicationContextUtils.registerEnvironmentBeans(this.context.getBeanFactory(), servletContext);
		for (ServletContextInitializer initializerBean : new ServletContextInitializerBeans(
				this.context.getBeanFactory())) {
			initializerBean.onStartup(servletContext);
		}
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does initialize() do?
initialize() is a function in the spring-boot codebase.
What does initialize() call?
initialize() calls 3 function(s): ServletContextInitializerBeans, prepareWebApplicationContext, registerApplicationScope.
What calls initialize()?
initialize() is called by 2 function(s): create, load.

Analyze Your Own Codebase

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

Try Supermodel Free