org.apache.maven.project
Class DefaultDependencyResolutionRequest

java.lang.Object
  extended by org.apache.maven.project.DefaultDependencyResolutionRequest
All Implemented Interfaces:
DependencyResolutionRequest

public class DefaultDependencyResolutionRequest
extends Object
implements DependencyResolutionRequest

Author:
Benjamin Bentmann

Constructor Summary
DefaultDependencyResolutionRequest()
           
DefaultDependencyResolutionRequest(MavenProject project, RepositorySystemSession session)
           
 
Method Summary
 MavenProject getMavenProject()
          Gets the project to resolve dependencies for.
 RepositorySystemSession getRepositorySession()
          Gets the session to use for repository access.
 DependencyFilter getResolutionFilter()
          Gets the filter used to exclude some dependencies from resolution.
 DependencyResolutionRequest setMavenProject(MavenProject project)
          Sets the project to resolve dependencies for.
 DependencyResolutionRequest setRepositorySession(RepositorySystemSession repositorySession)
          Sets the session to use for repository access.
 DependencyResolutionRequest setResolutionFilter(DependencyFilter filter)
          Sets the filter used to exclude some dependencies from resolution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDependencyResolutionRequest

public DefaultDependencyResolutionRequest()

DefaultDependencyResolutionRequest

public DefaultDependencyResolutionRequest(MavenProject project,
                                          RepositorySystemSession session)
Method Detail

getResolutionFilter

public DependencyFilter getResolutionFilter()
Description copied from interface: DependencyResolutionRequest
Gets the filter used to exclude some dependencies from resolution.

Specified by:
getResolutionFilter in interface DependencyResolutionRequest
Returns:
The filter to exclude dependencies from resolution or null to resolve all dependencies.

getMavenProject

public MavenProject getMavenProject()
Description copied from interface: DependencyResolutionRequest
Gets the project to resolve dependencies for.

Specified by:
getMavenProject in interface DependencyResolutionRequest
Returns:
The project to resolve dependencies for or null if not set.

getRepositorySession

public RepositorySystemSession getRepositorySession()
Description copied from interface: DependencyResolutionRequest
Gets the session to use for repository access.

Specified by:
getRepositorySession in interface DependencyResolutionRequest
Returns:
The repository session or null if not set.

setResolutionFilter

public DependencyResolutionRequest setResolutionFilter(DependencyFilter filter)
Description copied from interface: DependencyResolutionRequest
Sets the filter used to exclude some dependencies from resolution. Note that this filter only controls the resolution/download of dependency artifacts, not the inclusion of dependency nodes in the resolved dependeny graph.

Specified by:
setResolutionFilter in interface DependencyResolutionRequest
Parameters:
filter - The filter to exclude dependencies from resolution, may be null to resolve all dependencies.
Returns:
This request for chaining, never null.

setMavenProject

public DependencyResolutionRequest setMavenProject(MavenProject project)
Description copied from interface: DependencyResolutionRequest
Sets the project to resolve dependencies for.

Specified by:
setMavenProject in interface DependencyResolutionRequest
Parameters:
project - The project to resolve dependencies for, may be null.
Returns:
This request for chaining, never null.

setRepositorySession

public DependencyResolutionRequest setRepositorySession(RepositorySystemSession repositorySession)
Description copied from interface: DependencyResolutionRequest
Sets the session to use for repository access.

Specified by:
setRepositorySession in interface DependencyResolutionRequest
Parameters:
repositorySession - The repository session to use.
Returns:
This request for chaining, never null.


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.