ComponentFinderStrategy
public class SourceCodeComponentFinderStrategy extends java.lang.Object implements ComponentFinderStrategy
Constructor | Description |
---|---|
SourceCodeComponentFinderStrategy(java.io.File sourcePath) |
|
SourceCodeComponentFinderStrategy(java.io.File sourcePath,
int maxDescriptionLength) |
Modifier and Type | Method | Description |
---|---|---|
void |
afterFindComponents() |
Called after all component finder strategies belonging to the
same component finder have found components.
|
void |
beforeFindComponents() |
Called before all component finder strategies belonging to the
same component finder are asked to find components.
|
java.util.Set<com.structurizr.model.Component> |
findComponents() |
Finds components.
|
void |
setComponentFinder(ComponentFinder componentFinder) |
Sets a reference to the parent component finder.
|
void |
setEncoding(java.lang.String encoding) |
|
static boolean |
start(com.sun.javadoc.RootDoc rootDoc) |
public SourceCodeComponentFinderStrategy(java.io.File sourcePath)
public SourceCodeComponentFinderStrategy(java.io.File sourcePath, int maxDescriptionLength)
public void setComponentFinder(ComponentFinder componentFinder)
ComponentFinderStrategy
setComponentFinder
in interface ComponentFinderStrategy
componentFinder
- a ComponentFinder instancepublic void setEncoding(java.lang.String encoding)
public void beforeFindComponents() throws java.lang.Exception
ComponentFinderStrategy
beforeFindComponents
in interface ComponentFinderStrategy
java.lang.Exception
- if something goes wrongpublic java.util.Set<com.structurizr.model.Component> findComponents() throws java.lang.Exception
ComponentFinderStrategy
findComponents
in interface ComponentFinderStrategy
java.lang.Exception
- if something goes wrongpublic void afterFindComponents() throws java.lang.Exception
ComponentFinderStrategy
afterFindComponents
in interface ComponentFinderStrategy
java.lang.Exception
- if something goes wrongpublic static boolean start(com.sun.javadoc.RootDoc rootDoc)