Package org.apache.maven.impl
Class DefaultDependencyResolverResult
java.lang.Object
org.apache.maven.impl.DefaultDependencyResolverResult
- All Implemented Interfaces:
DependencyResolverResult
,Result<DependencyResolverRequest>
The result of collecting dependencies with a dependency resolver.
New instances are initially empty. Callers must populate with calls
to the following methods, in that order:
addOutputDirectory(Path, Path)
(optional)addDependency(Node, Dependency, Predicate, Path)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDependencyResolverResult
(DependencyResolverRequest request, org.apache.maven.impl.PathModularizationCache cache, List<Exception> exceptions, Node root, int count) Creates an initially empty result. -
Method Summary
Modifier and TypeMethodDescriptiongetModuleDescriptor
(Path dependency) getModuleName
(Path dependency) getNodes()
getPaths()
getRoot()
-
Constructor Details
-
DefaultDependencyResolverResult
public DefaultDependencyResolverResult(DependencyResolverRequest request, org.apache.maven.impl.PathModularizationCache cache, List<Exception> exceptions, Node root, int count) Creates an initially empty result. Callers should add path elements by calls toaddDependency(Node, Dependency, Predicate, Path)
.- Parameters:
request
- the corresponding requestcache
- cache of module information about each dependencyexceptions
- the exceptions that occurred while building the dependency graphroot
- the root node of the dependency graphcount
- estimated number of dependencies
-
-
Method Details
-
getRequest
- Specified by:
getRequest
in interfaceResult<DependencyResolverRequest>
-
getExceptions
- Specified by:
getExceptions
in interfaceDependencyResolverResult
-
getRoot
- Specified by:
getRoot
in interfaceDependencyResolverResult
-
getNodes
- Specified by:
getNodes
in interfaceDependencyResolverResult
-
getPaths
- Specified by:
getPaths
in interfaceDependencyResolverResult
-
getDispatchedPaths
- Specified by:
getDispatchedPaths
in interfaceDependencyResolverResult
-
getDependencies
- Specified by:
getDependencies
in interfaceDependencyResolverResult
-
getModuleDescriptor
- Specified by:
getModuleDescriptor
in interfaceDependencyResolverResult
- Throws:
IOException
-
getModuleName
- Specified by:
getModuleName
in interfaceDependencyResolverResult
- Throws:
IOException
-
warningForFilenameBasedAutomodules
- Specified by:
warningForFilenameBasedAutomodules
in interfaceDependencyResolverResult
-