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.
|
void |
update()
Runs the update steps of dependency-check.
|
accept, doUpdates, getAnalyzers, getAnalyzers, getDependencies, getFileTypeAnalyzers, initializeEngine, scan, scan, scan, scan, scan, scanDirectory, scanFile, setDependenciespublic 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 Enginepublic void update()
protected 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 © 2013–2016 OWASP. All rights reserved.