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

customBeanNameGenerator() — spring-boot Function Reference

Architecture documentation for the customBeanNameGenerator() function in SpringApplicationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  8fce277c_b797_4fd3_92dc_9b7e3dbae960["customBeanNameGenerator()"]
  69816486_a4f0_d760_faa8_b84520ac7e8a["TestSpringApplication()"]
  8fce277c_b797_4fd3_92dc_9b7e3dbae960 -->|calls| 69816486_a4f0_d760_faa8_b84520ac7e8a
  ad833542_2916_566a_184b_ff07d5696295["getLoader()"]
  8fce277c_b797_4fd3_92dc_9b7e3dbae960 -->|calls| ad833542_2916_566a_184b_ff07d5696295
  3613e214_49bf_015b_c43f_7f8a1274fb0b["run()"]
  8fce277c_b797_4fd3_92dc_9b7e3dbae960 -->|calls| 3613e214_49bf_015b_c43f_7f8a1274fb0b
  style 8fce277c_b797_4fd3_92dc_9b7e3dbae960 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 465–474

	@Test
	void customBeanNameGenerator() {
		TestSpringApplication application = new TestSpringApplication(ExampleConfig.class);
		BeanNameGenerator beanNameGenerator = new DefaultBeanNameGenerator();
		application.setBeanNameGenerator(beanNameGenerator);
		this.context = application.run();
		then(application.getLoader()).should().setBeanNameGenerator(beanNameGenerator);
		Object actualGenerator = this.context.getBean(AnnotationConfigUtils.CONFIGURATION_BEAN_NAME_GENERATOR);
		assertThat(actualGenerator).isSameAs(beanNameGenerator);
	}

Domain

Subdomains

Frequently Asked Questions

What does customBeanNameGenerator() do?
customBeanNameGenerator() is a function in the spring-boot codebase.
What does customBeanNameGenerator() call?
customBeanNameGenerator() calls 3 function(s): TestSpringApplication, getLoader, run.

Analyze Your Own Codebase

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

Try Supermodel Free