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

createInstance() — spring-boot Function Reference

Architecture documentation for the createInstance() function in InstantiatorTests.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 1 called by 4

Entity Profile

Dependency Diagram

graph TD
  45aeffa4_6315_c3b6_fe63_dd3ceadc4110["createInstance()"]
  dc2da5b4_e5b2_5fd7_2c79_b3c498b77d5e["instantiateWhenOnlyDefaultConstructorCreatesInstance()"]
  dc2da5b4_e5b2_5fd7_2c79_b3c498b77d5e -->|calls| 45aeffa4_6315_c3b6_fe63_dd3ceadc4110
  d4df59a3_e625_a7e5_0893_cb33436bc2c6["instantiateWhenMultipleConstructorPicksMostArguments()"]
  d4df59a3_e625_a7e5_0893_cb33436bc2c6 -->|calls| 45aeffa4_6315_c3b6_fe63_dd3ceadc4110
  737835ca_ed7b_0adc_5c0d_4415689c3077["instantiateWhenAdditionalConstructorPicksMostSuitable()"]
  737835ca_ed7b_0adc_5c0d_4415689c3077 -->|calls| 45aeffa4_6315_c3b6_fe63_dd3ceadc4110
  77d79077_5904_7682_4b95_af65e1ae0b51["instantiateWithFactory()"]
  77d79077_5904_7682_4b95_af65e1ae0b51 -->|calls| 45aeffa4_6315_c3b6_fe63_dd3ceadc4110
  4b31d42a_6d81_1ff2_8065_fb01d7f41e74["createInstantiator()"]
  45aeffa4_6315_c3b6_fe63_dd3ceadc4110 -->|calls| 4b31d42a_6d81_1ff2_8065_fb01d7f41e74
  style 45aeffa4_6315_c3b6_fe63_dd3ceadc4110 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/util/InstantiatorTests.java lines 148–152

	private <T> T createInstance(Class<T> type) {
		T instance = createInstantiator(type).instantiate(type.getName());
		assertThat(instance).isNotNull();
		return instance;
	}

Domain

Subdomains

Called By

  • instantiateWhenAdditionalConstructorPicksMostSuitable()
  • instantiateWhenMultipleConstructorPicksMostArguments()
  • instantiateWhenOnlyDefaultConstructorCreatesInstance()
  • instantiateWithFactory()

Frequently Asked Questions

What does createInstance() do?
createInstance() is a function in the spring-boot codebase.
What does createInstance() call?
createInstance() calls 1 function(s): createInstantiator.
What calls createInstance()?
createInstance() is called by 4 function(s): instantiateWhenAdditionalConstructorPicksMostSuitable, instantiateWhenMultipleConstructorPicksMostArguments, instantiateWhenOnlyDefaultConstructorCreatesInstance, instantiateWithFactory.

Analyze Your Own Codebase

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

Try Supermodel Free