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

containsBean() — spring-boot Function Reference

Architecture documentation for the containsBean() function in ConditionalOnPropertyTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  f5969709_b142_bf98_d2eb_491589955528["containsBean()"]
  c41bd5a0_8afc_8a64_8a6f_ff0cd8f80c4d["allPropertiesAreDefined()"]
  c41bd5a0_8afc_8a64_8a6f_ff0cd8f80c4d -->|calls| f5969709_b142_bf98_d2eb_491589955528
  95d73fa6_bdc0_0199_27fa_196bce2fdcbd["notAllPropertiesAreDefined()"]
  95d73fa6_bdc0_0199_27fa_196bce2fdcbd -->|calls| f5969709_b142_bf98_d2eb_491589955528
  e95fdece_8e94_e2a8_fd4f_ca4dcf835632["propertyValueEqualsFalse()"]
  e95fdece_8e94_e2a8_fd4f_ca4dcf835632 -->|calls| f5969709_b142_bf98_d2eb_491589955528
  898cc052_080e_413c_fc1b_b617634b173e["propertyValueEqualsFALSE()"]
  898cc052_080e_413c_fc1b_b617634b173e -->|calls| f5969709_b142_bf98_d2eb_491589955528
  c6e6e49f_3412_1e63_8d35_d860445b0337["relaxedName()"]
  c6e6e49f_3412_1e63_8d35_d860445b0337 -->|calls| f5969709_b142_bf98_d2eb_491589955528
  e32725e6_9258_6d55_3611_f4b666ed0153["prefixWithoutPeriod()"]
  e32725e6_9258_6d55_3611_f4b666ed0153 -->|calls| f5969709_b142_bf98_d2eb_491589955528
  4c30baae_20d7_7882_8a53_897de3b84e4c["enabledIfNotConfiguredOtherwise()"]
  4c30baae_20d7_7882_8a53_897de3b84e4c -->|calls| f5969709_b142_bf98_d2eb_491589955528
  0aa830be_3911_9b1d_2638_c3c6ac3ad126["enabledIfNotConfiguredOtherwiseWithConfig()"]
  0aa830be_3911_9b1d_2638_c3c6ac3ad126 -->|calls| f5969709_b142_bf98_d2eb_491589955528
  fd7156d6_5541_a739_01af_f97293469c25["enabledIfNotConfiguredOtherwiseWithConfigDifferentCase()"]
  fd7156d6_5541_a739_01af_f97293469c25 -->|calls| f5969709_b142_bf98_d2eb_491589955528
  e4ee4aeb_8644_5684_05fc_822ecf82232a["disableIfNotConfiguredOtherwise()"]
  e4ee4aeb_8644_5684_05fc_822ecf82232a -->|calls| f5969709_b142_bf98_d2eb_491589955528
  59ea847b_2407_784c_6c10_f61d7b688b74["disableIfNotConfiguredOtherwiseWithConfig()"]
  59ea847b_2407_784c_6c10_f61d7b688b74 -->|calls| f5969709_b142_bf98_d2eb_491589955528
  f35dbd3e_c24e_2264_10ef_f2c366e5a694["disableIfNotConfiguredOtherwiseWithConfigDifferentCase()"]
  f35dbd3e_c24e_2264_10ef_f2c366e5a694 -->|calls| f5969709_b142_bf98_d2eb_491589955528
  d045a4a3_5875_6e54_e39a_73e59d639a29["simpleValueIsSet()"]
  d045a4a3_5875_6e54_e39a_73e59d639a29 -->|calls| f5969709_b142_bf98_d2eb_491589955528
  3059ea23_d98f_68bb_d56b_ee966ada61cb["caseInsensitive()"]
  3059ea23_d98f_68bb_d56b_ee966ada61cb -->|calls| f5969709_b142_bf98_d2eb_491589955528
  style f5969709_b142_bf98_d2eb_491589955528 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/condition/ConditionalOnPropertyTests.java lines 199–202

	private boolean containsBean() {
		assertThat(this.context).isNotNull();
		return this.context.containsBean("foo");
	}

Domain

Subdomains

Called By

  • allPropertiesAreDefined()
  • caseInsensitive()
  • defaultValueIsNotSet()
  • defaultValueIsSet()
  • defaultValueIsSetDifferentValue()
  • disableIfNotConfiguredOtherwise()
  • disableIfNotConfiguredOtherwiseWithConfig()
  • disableIfNotConfiguredOtherwiseWithConfigDifferentCase()
  • enabledIfNotConfiguredOtherwise()
  • enabledIfNotConfiguredOtherwiseWithConfig()
  • enabledIfNotConfiguredOtherwiseWithConfigDifferentCase()
  • metaAndDirectAnnotationConditionDoesNotMatchWhenNeitherPropertyIsSet()
  • metaAndDirectAnnotationConditionDoesNotMatchWhenOnlyDirectPropertyIsSet()
  • metaAndDirectAnnotationConditionDoesNotMatchWhenOnlyMetaPropertyIsSet()
  • metaAndDirectAnnotationConditionMatchesWhenBothPropertiesAreSet()
  • metaAndDirectAnnotationWithAliasConditionDoesNotMatchWhenOnlyDirectPropertyIsSet()
  • metaAndDirectAnnotationWithAliasConditionDoesNotMatchWhenOnlyMetaPropertyIsSet()
  • metaAndDirectAnnotationWithAliasConditionMatchesWhenBothPropertiesAreSet()
  • metaAnnotationConditionDoesNotMatchWhenPropertyIsNotSet()
  • metaAnnotationConditionMatchesWhenPropertyIsSet()
  • metaAnnotationWithAliasConditionMatchesWhenPropertyIsSet()
  • multiValuesAllSet()
  • multiValuesOnlyOneSet()
  • multiplePropertiesConditionReportWhenMatched()
  • notAllPropertiesAreDefined()
  • prefix()
  • prefixWithoutPeriod()
  • propertyValueEqualsFALSE()
  • propertyValueEqualsFalse()
  • relaxedEnabledByDefault()
  • relaxedName()
  • repeatablePropertiesConditionReportWhenMatched()
  • simpleValueIsSet()
  • usingValueAttribute()

Frequently Asked Questions

What does containsBean() do?
containsBean() is a function in the spring-boot codebase.
What calls containsBean()?
containsBean() is called by 34 function(s): allPropertiesAreDefined, caseInsensitive, defaultValueIsNotSet, defaultValueIsSet, defaultValueIsSetDifferentValue, disableIfNotConfiguredOtherwise, disableIfNotConfiguredOtherwiseWithConfig, disableIfNotConfiguredOtherwiseWithConfigDifferentCase, and 26 more.

Analyze Your Own Codebase

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

Try Supermodel Free