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:
getRequestin interfaceResult<DependencyResolverRequest>
-
getExceptions
- Specified by:
getExceptionsin interfaceDependencyResolverResult
-
getRoot
- Specified by:
getRootin interfaceDependencyResolverResult
-
getNodes
- Specified by:
getNodesin interfaceDependencyResolverResult
-
getPaths
- Specified by:
getPathsin interfaceDependencyResolverResult
-
getDispatchedPaths
- Specified by:
getDispatchedPathsin interfaceDependencyResolverResult
-
getDependencies
- Specified by:
getDependenciesin interfaceDependencyResolverResult
-
getModuleDescriptor
- Specified by:
getModuleDescriptorin interfaceDependencyResolverResult- Throws:
IOException
-
getModuleName
- Specified by:
getModuleNamein interfaceDependencyResolverResult- Throws:
IOException
-
warningForFilenameBasedAutomodules
- Specified by:
warningForFilenameBasedAutomodulesin interfaceDependencyResolverResult
-