public class SpringComponentFinderStrategy extends AbstractSpringComponentFinderStrategy
This component finder strategy knows how to find the following Spring components:
By default, non-public types will be ignored so that, for example, you can
hide repository implementations behind services, as described at
Whoops! Where did my architecture go.
You can change this behaviour by passing false to AbstractSpringComponentFinderStrategy.setIncludePublicTypesOnly(boolean).
includePublicTypesOnly, SPRING_COMPONENT, SPRING_MVC_CONTROLLER, SPRING_REPOSITORY, SPRING_REST_CONTROLLER, SPRING_SERVICE, SPRING_WEB_SERVICE_ENDPOINT| Constructor and Description |
|---|
SpringComponentFinderStrategy(com.structurizr.analysis.SupportingTypesStrategy... strategies) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeFindComponents() |
protected java.util.Set<com.structurizr.model.Component> |
doFindComponents() |
findInterfacesForImplementationClassesWithAnnotation, setIncludePublicTypesOnlyaddComponent, addSupportingTypesStrategy, afterFindComponents, findClassesWithAnnotation, findClassesWithAnnotation, findComponents, findDependencies, findSupportingTypes, findTypesAnnotatedWith, getComponentFinder, getDuplicateComponentStrategy, getTypeRepository, setComponentFinder, setDuplicateComponentStrategypublic SpringComponentFinderStrategy(com.structurizr.analysis.SupportingTypesStrategy... strategies)
public void beforeFindComponents()
beforeFindComponents in interface com.structurizr.analysis.ComponentFinderStrategybeforeFindComponents in class com.structurizr.analysis.AbstractComponentFinderStrategyprotected java.util.Set<com.structurizr.model.Component> doFindComponents()
doFindComponents in class com.structurizr.analysis.AbstractComponentFinderStrategy