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

beansAndContainersNamed() — spring-boot Function Reference

Architecture documentation for the beansAndContainersNamed() function in ConditionalOnMissingBeanTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  7505a904_b3c9_528d_50c2_6d09b20a85a2["beansAndContainersNamed()"]
  44feadfc_c46e_bc33_990b_0a19cf0e1b97["parameterizedContainerWhenValueIsOfMissingBeanMatches()"]
  44feadfc_c46e_bc33_990b_0a19cf0e1b97 -->|calls| 7505a904_b3c9_528d_50c2_6d09b20a85a2
  3aaa6f12_cc1e_6edb_f520_96aa5eb93208["parameterizedContainerWhenValueIsOfExistingBeanDoesNotMatch()"]
  3aaa6f12_cc1e_6edb_f520_96aa5eb93208 -->|calls| 7505a904_b3c9_528d_50c2_6d09b20a85a2
  9f5faa52_4553_dee7_1d6d_a9de7d5226a3["parameterizedContainerWhenValueIsOfMissingBeanRegistrationMatches()"]
  9f5faa52_4553_dee7_1d6d_a9de7d5226a3 -->|calls| 7505a904_b3c9_528d_50c2_6d09b20a85a2
  0e5f85ad_fe6a_096d_f92d_a11600a79c56["parameterizedContainerWhenValueIsOfExistingBeanRegistrationDoesNotMatch()"]
  0e5f85ad_fe6a_096d_f92d_a11600a79c56 -->|calls| 7505a904_b3c9_528d_50c2_6d09b20a85a2
  82d64311_a41e_0e76_0005_db362d2fb929["parameterizedContainerWhenReturnTypeIsOfExistingBeanDoesNotMatch()"]
  82d64311_a41e_0e76_0005_db362d2fb929 -->|calls| 7505a904_b3c9_528d_50c2_6d09b20a85a2
  5f272ffa_9ad3_63a4_2cc9_286968333909["parameterizedContainerWhenReturnTypeIsOfExistingBeanRegistrationDoesNotMatch()"]
  5f272ffa_9ad3_63a4_2cc9_286968333909 -->|calls| 7505a904_b3c9_528d_50c2_6d09b20a85a2
  e55e7dd5_ecc8_9448_1580_a117bd2adfb6["parameterizedContainerWhenReturnRegistrationTypeIsOfExistingBeanDoesNotMatch()"]
  e55e7dd5_ecc8_9448_1580_a117bd2adfb6 -->|calls| 7505a904_b3c9_528d_50c2_6d09b20a85a2
  3b61ebfa_08a8_eb95_1413_076eb0f66ede["parameterizedContainerWhenReturnRegistrationTypeIsOfExistingBeanRegistrationDoesNotMatch()"]
  3b61ebfa_08a8_eb95_1413_076eb0f66ede -->|calls| 7505a904_b3c9_528d_50c2_6d09b20a85a2
  a2ce557e_1858_ca49_1d14_437f98c4674e["genericWhenTypeArgumentNotMatches()"]
  a2ce557e_1858_ca49_1d14_437f98c4674e -->|calls| 7505a904_b3c9_528d_50c2_6d09b20a85a2
  32a12ae3_bf80_1ba9_341f_9d3b10438916["genericWhenSubclassTypeArgumentMatches()"]
  32a12ae3_bf80_1ba9_341f_9d3b10438916 -->|calls| 7505a904_b3c9_528d_50c2_6d09b20a85a2
  384816d5_b591_3c9e_8878_b004d0aaa1a7["genericWhenSubclassTypeArgumentNotMatches()"]
  384816d5_b591_3c9e_8878_b004d0aaa1a7 -->|calls| 7505a904_b3c9_528d_50c2_6d09b20a85a2
  1b4a626d_cca2_ea5f_4825_5cc482b2ed61["genericWhenTypeArgumentWithValueMatches()"]
  1b4a626d_cca2_ea5f_4825_5cc482b2ed61 -->|calls| 7505a904_b3c9_528d_50c2_6d09b20a85a2
  bea876e0_c0fa_da26_dcb4_439343e0d008["genericWithValueWhenSubclassTypeArgumentMatches()"]
  bea876e0_c0fa_da26_dcb4_439343e0d008 -->|calls| 7505a904_b3c9_528d_50c2_6d09b20a85a2
  0d714faa_c5e5_05ab_656f_a8df71b3baf5["parameterizedContainerGenericWhenTypeArgumentNotMatches()"]
  0d714faa_c5e5_05ab_656f_a8df71b3baf5 -->|calls| 7505a904_b3c9_528d_50c2_6d09b20a85a2
  style 7505a904_b3c9_528d_50c2_6d09b20a85a2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/condition/ConditionalOnMissingBeanTests.java lines 528–534

	private Consumer<ConfigurableApplicationContext> beansAndContainersNamed(Class<?> type, String... names) {
		return (context) -> {
			String[] beans = context.getBeanNamesForType(type);
			String[] containers = context.getBeanNamesForType(TestParameterizedContainer.class);
			assertThat(StringUtils.concatenateStringArrays(beans, containers)).containsOnly(names);
		};
	}

Domain

Subdomains

Called By

  • genericWhenSubclassTypeArgumentMatches()
  • genericWhenSubclassTypeArgumentNotMatches()
  • genericWhenTypeArgumentNotMatches()
  • genericWhenTypeArgumentWithValueMatches()
  • genericWithValueWhenSubclassTypeArgumentMatches()
  • parameterizedContainerGenericWhenSubclassTypeArgumentMatches()
  • parameterizedContainerGenericWhenTypeArgumentMatches()
  • parameterizedContainerGenericWhenTypeArgumentNotMatches()
  • parameterizedContainerWhenReturnRegistrationTypeIsOfExistingBeanDoesNotMatch()
  • parameterizedContainerWhenReturnRegistrationTypeIsOfExistingBeanRegistrationDoesNotMatch()
  • parameterizedContainerWhenReturnTypeIsOfExistingBeanDoesNotMatch()
  • parameterizedContainerWhenReturnTypeIsOfExistingBeanRegistrationDoesNotMatch()
  • parameterizedContainerWhenValueIsOfExistingBeanDoesNotMatch()
  • parameterizedContainerWhenValueIsOfExistingBeanRegistrationDoesNotMatch()
  • parameterizedContainerWhenValueIsOfMissingBeanMatches()
  • parameterizedContainerWhenValueIsOfMissingBeanRegistrationMatches()

Frequently Asked Questions

What does beansAndContainersNamed() do?
beansAndContainersNamed() is a function in the spring-boot codebase.
What calls beansAndContainersNamed()?
beansAndContainersNamed() is called by 16 function(s): genericWhenSubclassTypeArgumentMatches, genericWhenSubclassTypeArgumentNotMatches, genericWhenTypeArgumentNotMatches, genericWhenTypeArgumentWithValueMatches, genericWithValueWhenSubclassTypeArgumentMatches, parameterizedContainerGenericWhenSubclassTypeArgumentMatches, parameterizedContainerGenericWhenTypeArgumentMatches, parameterizedContainerGenericWhenTypeArgumentNotMatches, and 8 more.

Analyze Your Own Codebase

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

Try Supermodel Free