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

getMatchOutcomeForBasename() — spring-boot Function Reference

Architecture documentation for the getMatchOutcomeForBasename() function in MessageSourceAutoConfiguration.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 7 called by 1

Entity Profile

Dependency Diagram

graph TD
  c9085c5f_4de1_7b04_4ea1_96b58328857b["getMatchOutcomeForBasename()"]
  68fe6fcc_df78_d667_c980_6897b9c63779["getMatchOutcome()"]
  68fe6fcc_df78_d667_c980_6897b9c63779 -->|calls| c9085c5f_4de1_7b04_4ea1_96b58328857b
  0603596b_b916_9d8c_1e66_83464ed39e67["forCondition()"]
  c9085c5f_4de1_7b04_4ea1_96b58328857b -->|calls| 0603596b_b916_9d8c_1e66_83464ed39e67
  b2ca7790_c732_2e12_3af9_d99fdc98c1de["getResources()"]
  c9085c5f_4de1_7b04_4ea1_96b58328857b -->|calls| b2ca7790_c732_2e12_3af9_d99fdc98c1de
  400896d2_90f4_d5de_f777_5e833f4199c0["found()"]
  c9085c5f_4de1_7b04_4ea1_96b58328857b -->|calls| 400896d2_90f4_d5de_f777_5e833f4199c0
  cda33899_fd39_7aab_217d_1e0555883860["items()"]
  c9085c5f_4de1_7b04_4ea1_96b58328857b -->|calls| cda33899_fd39_7aab_217d_1e0555883860
  bc4686f6_5c18_5823_0aad_cec5e87474cb["noMatch()"]
  c9085c5f_4de1_7b04_4ea1_96b58328857b -->|calls| bc4686f6_5c18_5823_0aad_cec5e87474cb
  9f262352_bb60_ff6f_3b9a_90569ef55eff["didNotFind()"]
  c9085c5f_4de1_7b04_4ea1_96b58328857b -->|calls| 9f262352_bb60_ff6f_3b9a_90569ef55eff
  595cf69b_ca6a_8599_5402_3c6bda228ec0["atAll()"]
  c9085c5f_4de1_7b04_4ea1_96b58328857b -->|calls| 595cf69b_ca6a_8599_5402_3c6bda228ec0
  style c9085c5f_4de1_7b04_4ea1_96b58328857b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/context/MessageSourceAutoConfiguration.java lines 128–138

		private ConditionOutcome getMatchOutcomeForBasename(ConditionContext context, String basename) {
			ConditionMessage.Builder message = ConditionMessage.forCondition("ResourceBundle");
			for (String name : StringUtils.commaDelimitedListToStringArray(StringUtils.trimAllWhitespace(basename))) {
				for (Resource resource : getResources(context.getClassLoader(), name)) {
					if (resource.exists()) {
						return ConditionOutcome.match(message.found("bundle").items(resource));
					}
				}
			}
			return ConditionOutcome.noMatch(message.didNotFind("bundle with basename " + basename).atAll());
		}

Domain

Subdomains

Called By

  • getMatchOutcome()

Frequently Asked Questions

What does getMatchOutcomeForBasename() do?
getMatchOutcomeForBasename() is a function in the spring-boot codebase.
What does getMatchOutcomeForBasename() call?
getMatchOutcomeForBasename() calls 7 function(s): atAll, didNotFind, forCondition, found, getResources, items, noMatch.
What calls getMatchOutcomeForBasename()?
getMatchOutcomeForBasename() 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