Class DefaultDependencyResolverResult
java.lang.Object
org.apache.maven.impl.DefaultDependencyResolverResult
- All Implemented Interfaces:
org.apache.maven.api.services.DependencyResolverResult, org.apache.maven.api.services.Result<org.apache.maven.api.services.DependencyResolverRequest>
public class DefaultDependencyResolverResult
extends Object
implements org.apache.maven.api.services.DependencyResolverResult
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)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDependencyResolverResult(org.apache.maven.api.services.DependencyResolverRequest request, List<Exception> exceptions, org.apache.maven.api.Node root, int count) Creates an initially empty result with a temporary cache. -
Method Summary
Modifier and TypeMethodDescriptiongetModuleDescriptor(Path dependency) getModuleName(Path dependency) List<org.apache.maven.api.Node> getNodes()getPaths()org.apache.maven.api.services.DependencyResolverRequestorg.apache.maven.api.NodegetRoot()
-
Constructor Details
-
DefaultDependencyResolverResult
public DefaultDependencyResolverResult(org.apache.maven.api.services.DependencyResolverRequest request, List<Exception> exceptions, org.apache.maven.api.Node root, int count) Creates an initially empty result with a temporary cache. Callers should add path elements by calls toaddDependency(Node, Dependency, Predicate, Path).WARNING: this constructor may be removed in a future Maven release. The reason is because
DefaultDependencyResolverResultneeds a cache, which should preferably be session-wide. How to manage such caches has not yet been clarified.- Parameters:
request- the corresponding requestexceptions- the exceptions that occurred while building the dependency graphroot- the root node of the dependency graphcount- estimated number of dependencies
-
-
Method Details
-
getRequest
public org.apache.maven.api.services.DependencyResolverRequest getRequest()- Specified by:
getRequestin interfaceorg.apache.maven.api.services.Result<org.apache.maven.api.services.DependencyResolverRequest>
-
getExceptions
-
getRoot
public org.apache.maven.api.Node getRoot()- Specified by:
getRootin interfaceorg.apache.maven.api.services.DependencyResolverResult
-
getNodes
- Specified by:
getNodesin interfaceorg.apache.maven.api.services.DependencyResolverResult
-
getPaths
-
getDispatchedPaths
-
getDependencies
-
getModuleDescriptor
- Specified by:
getModuleDescriptorin interfaceorg.apache.maven.api.services.DependencyResolverResult- Throws:
IOException
-
getModuleName
- Specified by:
getModuleNamein interfaceorg.apache.maven.api.services.DependencyResolverResult- Throws:
IOException
-
warningForFilenameBasedAutomodules
-