66import com .structurizr .component .filter .IncludeFullyQualifiedNameRegexFilter ;
77import com .structurizr .component .matcher .AnnotationTypeMatcher ;
88import com .structurizr .component .matcher .ImplementsTypeMatcher ;
9+ import com .structurizr .component .matcher .NameSuffixTypeMatcher ;
910import com .structurizr .component .url .PrefixSourceUrlStrategy ;
1011import com .structurizr .model .Component ;
1112import com .structurizr .model .Container ;
@@ -35,7 +36,7 @@ void springPetClinic() {
3536
3637 ComponentFinder componentFinder = new ComponentFinderBuilder ()
3738 .forContainer (webApplication )
38- .fromClasses (new File (springPetClinicHome , "target/spring-petclinic-3.3 .0-SNAPSHOT.jar" ))
39+ .fromClasses (new File (springPetClinicHome , "target/spring-petclinic-3.4 .0-SNAPSHOT.jar" ))
3940 .fromSource (new File (springPetClinicHome , "src/main/java" ))
4041 .filteredBy (new IncludeFullyQualifiedNameRegexFilter ("org\\ .springframework\\ .samples\\ .petclinic\\ ..*" ))
4142 .withStrategy (
@@ -52,7 +53,7 @@ void springPetClinic() {
5253 )
5354 .withStrategy (
5455 new ComponentFinderStrategyBuilder ()
55- .matchedBy (new ImplementsTypeMatcher ( "org.springframework.data.repository. Repository" ))
56+ .matchedBy (new NameSuffixTypeMatcher ( " Repository" ))
5657 .withDescription (new FirstSentenceDescriptionStrategy ())
5758 .withTechnology ("Spring Data Repository" )
5859 .withUrl (new PrefixSourceUrlStrategy ("https://github.com/spring-projects/spring-petclinic/blob/main/src/main/java" ))
0 commit comments