matches() — spring-boot Function Reference
Architecture documentation for the matches() function in SpringBootCondition.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 39f83424_bdae_9d10_e51e_2a0134ab4c96["matches()"] fc2b7546_3dce_0d16_0c3d_50e744f79f93["anyMatches()"] fc2b7546_3dce_0d16_0c3d_50e744f79f93 -->|calls| 39f83424_bdae_9d10_e51e_2a0134ab4c96 49f62455_a8ac_a3be_c7d1_2f95e83a7c30["getClassOrMethodName()"] 39f83424_bdae_9d10_e51e_2a0134ab4c96 -->|calls| 49f62455_a8ac_a3be_c7d1_2f95e83a7c30 4be1ca61_d1ec_c1b4_bcb4_b39963998430["getMatchOutcome()"] 39f83424_bdae_9d10_e51e_2a0134ab4c96 -->|calls| 4be1ca61_d1ec_c1b4_bcb4_b39963998430 2b0cb797_7179_24f6_d3de_dd73cd058c95["logOutcome()"] 39f83424_bdae_9d10_e51e_2a0134ab4c96 -->|calls| 2b0cb797_7179_24f6_d3de_dd73cd058c95 a2522135_75ee_dfad_ef71_565086f660bd["recordEvaluation()"] 39f83424_bdae_9d10_e51e_2a0134ab4c96 -->|calls| a2522135_75ee_dfad_ef71_565086f660bd 5f3ac574_414e_81b2_13fd_96e2a5074b78["getName()"] 39f83424_bdae_9d10_e51e_2a0134ab4c96 -->|calls| 5f3ac574_414e_81b2_13fd_96e2a5074b78 style 39f83424_bdae_9d10_e51e_2a0134ab4c96 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/SpringBootCondition.java lines 43–62
@Override
public final boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
String classOrMethodName = getClassOrMethodName(metadata);
try {
ConditionOutcome outcome = getMatchOutcome(context, metadata);
logOutcome(classOrMethodName, outcome);
recordEvaluation(context, classOrMethodName, outcome);
return outcome.isMatch();
}
catch (NoClassDefFoundError ex) {
throw new IllegalStateException("Could not evaluate condition on " + classOrMethodName + " due to "
+ ex.getMessage() + " not found. Make sure your own configuration does not rely on "
+ "that class. This can also happen if you are "
+ "@ComponentScanning a springframework package (e.g. if you "
+ "put a @ComponentScan in the default package by mistake)", ex);
}
catch (RuntimeException ex) {
throw new IllegalStateException("Error processing condition on " + getName(metadata), ex);
}
}
Domain
Subdomains
Calls
- getClassOrMethodName()
- getMatchOutcome()
- getName()
- logOutcome()
- recordEvaluation()
Called By
- anyMatches()
Source
Frequently Asked Questions
What does matches() do?
matches() is a function in the spring-boot codebase.
What does matches() call?
matches() calls 5 function(s): getClassOrMethodName, getMatchOutcome, getName, logOutcome, recordEvaluation.
What calls matches()?
matches() is called by 1 function(s): anyMatches.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free