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

evaluateConditionalOnBean() — spring-boot Function Reference

Architecture documentation for the evaluateConditionalOnBean() function in OnBeanCondition.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 5 called by 1

Entity Profile

Dependency Diagram

graph TD
  88a0bf69_b168_32a6_18fa_f66414a06bbd["evaluateConditionalOnBean()"]
  43c9ea98_9071_6b63_b2a4_18a4917b5b73["getMatchOutcome()"]
  43c9ea98_9071_6b63_b2a4_18a4917b5b73 -->|calls| 88a0bf69_b168_32a6_18fa_f66414a06bbd
  e8d44fa6_45ad_6d14_6468_53ed18c907e0["getMatchingBeans()"]
  88a0bf69_b168_32a6_18fa_f66414a06bbd -->|calls| e8d44fa6_45ad_6d14_6468_53ed18c907e0
  bed53d29_b802_2b28_6cb2_c1f8993e9c48["isAllMatched()"]
  88a0bf69_b168_32a6_18fa_f66414a06bbd -->|calls| bed53d29_b802_2b28_6cb2_c1f8993e9c48
  248e1c83_7feb_5449_af88_e6474dfd2d43["createOnBeanNoMatchReason()"]
  88a0bf69_b168_32a6_18fa_f66414a06bbd -->|calls| 248e1c83_7feb_5449_af88_e6474dfd2d43
  18f5fe99_be23_a43e_a6e4_fe16d6894135["message()"]
  88a0bf69_b168_32a6_18fa_f66414a06bbd -->|calls| 18f5fe99_be23_a43e_a6e4_fe16d6894135
  d4435eba_5621_88a1_37f8_edee25c820a2["getNamesOfAllMatches()"]
  88a0bf69_b168_32a6_18fa_f66414a06bbd -->|calls| d4435eba_5621_88a1_37f8_edee25c820a2
  style 88a0bf69_b168_32a6_18fa_f66414a06bbd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnBeanCondition.java lines 157–166

	private ConditionOutcome evaluateConditionalOnBean(Spec<ConditionalOnBean> spec, ConditionMessage matchMessage) {
		MatchResult matchResult = getMatchingBeans(spec);
		if (!matchResult.isAllMatched()) {
			String reason = createOnBeanNoMatchReason(matchResult);
			return ConditionOutcome.noMatch(spec.message().because(reason));
		}
		return ConditionOutcome.match(spec.message(matchMessage)
			.found("bean", "beans")
			.items(Style.QUOTE, matchResult.getNamesOfAllMatches()));
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does evaluateConditionalOnBean() do?
evaluateConditionalOnBean() is a function in the spring-boot codebase.
What does evaluateConditionalOnBean() call?
evaluateConditionalOnBean() calls 5 function(s): createOnBeanNoMatchReason, getMatchingBeans, getNamesOfAllMatches, isAllMatched, message.
What calls evaluateConditionalOnBean()?
evaluateConditionalOnBean() is called by 1 function(s): getMatchOutcome.

Analyze Your Own Codebase

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

Try Supermodel Free