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

getMatchOutcome() — spring-boot Function Reference

Architecture documentation for the getMatchOutcome() function in ProjectInfoAutoConfiguration.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  a79d9ef6_4478_e4ff_b3e8_02db7b3741e2["getMatchOutcome()"]
  4be1ca61_d1ec_c1b4_bcb4_b39963998430["getMatchOutcome()"]
  a79d9ef6_4478_e4ff_b3e8_02db7b3741e2 -->|calls| 4be1ca61_d1ec_c1b4_bcb4_b39963998430
  0603596b_b916_9d8c_1e66_83464ed39e67["forCondition()"]
  a79d9ef6_4478_e4ff_b3e8_02db7b3741e2 -->|calls| 0603596b_b916_9d8c_1e66_83464ed39e67
  400896d2_90f4_d5de_f777_5e833f4199c0["found()"]
  a79d9ef6_4478_e4ff_b3e8_02db7b3741e2 -->|calls| 400896d2_90f4_d5de_f777_5e833f4199c0
  cda33899_fd39_7aab_217d_1e0555883860["items()"]
  a79d9ef6_4478_e4ff_b3e8_02db7b3741e2 -->|calls| cda33899_fd39_7aab_217d_1e0555883860
  bc4686f6_5c18_5823_0aad_cec5e87474cb["noMatch()"]
  a79d9ef6_4478_e4ff_b3e8_02db7b3741e2 -->|calls| bc4686f6_5c18_5823_0aad_cec5e87474cb
  9f262352_bb60_ff6f_3b9a_90569ef55eff["didNotFind()"]
  a79d9ef6_4478_e4ff_b3e8_02db7b3741e2 -->|calls| 9f262352_bb60_ff6f_3b9a_90569ef55eff
  style a79d9ef6_4478_e4ff_b3e8_02db7b3741e2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/info/ProjectInfoAutoConfiguration.java lines 99–112

		@Override
		public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) {
			ResourceLoader loader = context.getResourceLoader();
			Environment environment = context.getEnvironment();
			String location = environment.getProperty("spring.info.git.location");
			if (location == null) {
				location = "classpath:git.properties";
			}
			ConditionMessage.Builder message = ConditionMessage.forCondition("GitResource");
			if (loader.getResource(location).exists()) {
				return ConditionOutcome.match(message.found("git info at").items(location));
			}
			return ConditionOutcome.noMatch(message.didNotFind("git info at").items(location));
		}

Domain

Subdomains

Frequently Asked Questions

What does getMatchOutcome() do?
getMatchOutcome() is a function in the spring-boot codebase.
What does getMatchOutcome() call?
getMatchOutcome() calls 6 function(s): didNotFind, forCondition, found, getMatchOutcome, items, noMatch.

Analyze Your Own Codebase

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

Try Supermodel Free