Package org.apache.maven.api.services
Class DependencyResolverRequest.DependencyResolverRequestBuilder.DefaultDependencyResolverRequest
java.lang.Object
org.apache.maven.api.services.BaseRequest<Session>
org.apache.maven.api.services.DependencyResolverRequest.DependencyResolverRequestBuilder.DefaultDependencyResolverRequest
- All Implemented Interfaces:
DependencyResolverRequest
- Enclosing class:
DependencyResolverRequest.DependencyResolverRequestBuilder
static class DependencyResolverRequest.DependencyResolverRequestBuilder.DefaultDependencyResolverRequest
extends BaseRequest<Session>
implements DependencyResolverRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.api.services.DependencyResolverRequest
DependencyResolverRequest.DependencyResolverRequestBuilder, DependencyResolverRequest.RequestType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection
<DependencyCoordinates> private final Collection
<DependencyCoordinates> private final PathScope
private final Project
private final List
<RemoteRepository> private final DependencyResolverRequest.RequestType
private final DependencyCoordinates
private final Artifact
private final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDependencyResolverRequest
(Session session, DependencyResolverRequest.RequestType requestType, Project project, Artifact rootArtifact, DependencyCoordinates root, Collection<DependencyCoordinates> dependencies, Collection<DependencyCoordinates> managedDependencies, boolean verbose, PathScope pathScope, Predicate<PathType> pathTypeFilter, List<RemoteRepository> repositories) Creates a request with the specified properties. -
Method Summary
Methods inherited from class org.apache.maven.api.services.BaseRequest
getSession, nonNull, unmodifiable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.maven.api.services.DependencyResolverRequest
getSession
-
Field Details
-
requestType
-
project
-
rootArtifact
-
root
-
dependencies
-
managedDependencies
-
verbose
private final boolean verbose -
pathScope
-
pathTypeFilter
-
repositories
-
-
Constructor Details
-
DefaultDependencyResolverRequest
DefaultDependencyResolverRequest(@Nonnull Session session, @Nonnull DependencyResolverRequest.RequestType requestType, @Nullable Project project, @Nullable Artifact rootArtifact, @Nullable DependencyCoordinates root, @Nonnull Collection<DependencyCoordinates> dependencies, @Nonnull Collection<DependencyCoordinates> managedDependencies, boolean verbose, @Nullable PathScope pathScope, @Nullable Predicate<PathType> pathTypeFilter, @Nullable List<RemoteRepository> repositories) Creates a request with the specified properties.- Parameters:
session
-Session
rootArtifact
- The root dependency whose transitive dependencies should be collected, may benull
.
-
-
Method Details
-
getRequestType
- Specified by:
getRequestType
in interfaceDependencyResolverRequest
-
getProject
- Specified by:
getProject
in interfaceDependencyResolverRequest
-
getRootArtifact
- Specified by:
getRootArtifact
in interfaceDependencyResolverRequest
-
getRoot
- Specified by:
getRoot
in interfaceDependencyResolverRequest
-
getDependencies
- Specified by:
getDependencies
in interfaceDependencyResolverRequest
-
getManagedDependencies
- Specified by:
getManagedDependencies
in interfaceDependencyResolverRequest
-
getVerbose
public boolean getVerbose()- Specified by:
getVerbose
in interfaceDependencyResolverRequest
-
getPathScope
- Specified by:
getPathScope
in interfaceDependencyResolverRequest
-
getPathTypeFilter
Description copied from interface:DependencyResolverRequest
Returns a filter for the types of path (class-path, module-path, …) accepted by the tool. For example, if a Java tools accepts only class-path elements, then the filter should returntrue
forJavaPathType.CLASSES
andfalse
forJavaPathType.MODULES
. If no filter is explicitly set, then the default is a filter accepting everything.- Specified by:
getPathTypeFilter
in interfaceDependencyResolverRequest
- Returns:
- a filter for the types of path (class-path, module-path, …) accepted by the tool
-
getRepositories
- Specified by:
getRepositories
in interfaceDependencyResolverRequest
-
toString
-