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 PathScopeprivate final Projectprivate final List<RemoteRepository> private final DependencyResolverRequest.RequestTypeprivate final DependencyCoordinatesprivate final Artifactprivate 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, unmodifiableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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-SessionrootArtifact- The root dependency whose transitive dependencies should be collected, may benull.
-
-
Method Details
-
getRequestType
- Specified by:
getRequestTypein interfaceDependencyResolverRequest
-
getProject
- Specified by:
getProjectin interfaceDependencyResolverRequest
-
getRootArtifact
- Specified by:
getRootArtifactin interfaceDependencyResolverRequest
-
getRoot
- Specified by:
getRootin interfaceDependencyResolverRequest
-
getDependencies
- Specified by:
getDependenciesin interfaceDependencyResolverRequest
-
getManagedDependencies
- Specified by:
getManagedDependenciesin interfaceDependencyResolverRequest
-
getVerbose
public boolean getVerbose()- Specified by:
getVerbosein interfaceDependencyResolverRequest
-
getPathScope
- Specified by:
getPathScopein interfaceDependencyResolverRequest
-
getPathTypeFilter
Description copied from interface:DependencyResolverRequestReturns 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 returntrueforJavaPathType.CLASSESandfalseforJavaPathType.MODULES. If no filter is explicitly set, then the default is a filter accepting everything.- Specified by:
getPathTypeFilterin interfaceDependencyResolverRequest- Returns:
- a filter for the types of path (class-path, module-path, …) accepted by the tool
-
getRepositories
- Specified by:
getRepositoriesin interfaceDependencyResolverRequest
-
toString
-