public class Engine extends Engine
| Modifier and Type | Field and Description |
|---|---|
static String |
UPDATE_EXECUTED_FLAG
Key used in the MavenProject context values to note whether or not an
update has been executed.
|
| Constructor and Description |
|---|
Engine(org.apache.maven.project.MavenProject project,
List<org.apache.maven.project.MavenProject> reactorProjects)
Creates a new Engine to perform anyalsis on dependencies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
analyzeDependencies()
Runs the analyzers against all of the dependencies.
|
void |
cleanup()
Releases resources used by the analyzers by calling close() on each
analyzer.
|
protected void |
closeAnalyzer(Analyzer analyzer)
Closes the given analyzer.
|
protected Analyzer |
initializeAnalyzer(Analyzer analyzer)
Initializes the given analyzer.
|
void |
resetFileTypeAnalyzers()
Resets the file type analyzers so that they can be re-used to scan
additional directories.
|
getAnalyzers, getAnalyzers, getDependencies, getFileTypeAnalyzers, initializeEngine, scan, scan, scan, scan, scan, scan, scanDirectory, scanFile, setDependencies, supportsExtensionpublic static final String UPDATE_EXECUTED_FLAG
public Engine(org.apache.maven.project.MavenProject project,
List<org.apache.maven.project.MavenProject> reactorProjects)
throws DatabaseException
project - the current Maven projectreactorProjects - the reactor projects for the current Maven
executionDatabaseException - thrown if there is an issue connecting to the
databasepublic void analyzeDependencies()
analyzeDependencies in class Engineprotected Analyzer initializeAnalyzer(Analyzer analyzer)
initializeAnalyzer in class Engineanalyzer - the analyzer to initializepublic void cleanup()
protected void closeAnalyzer(Analyzer analyzer)
closeAnalyzer in class Engineanalyzer - the analyzer to closepublic void resetFileTypeAnalyzers()
Copyright© 2012-15 Jeremy Long. All Rights Reserved.