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, org.sonatype.aether.RepositorySystemSession session)
           
 
Method Summary
 MavenProject getMavenProject()
          Gets the project to resolve dependencies for.
 org.sonatype.aether.RepositorySystemSession getRepositorySession()
          Gets the session to use for repository access.
 org.sonatype.aether.graph.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(org.sonatype.aether.RepositorySystemSession repositorySession)
          Sets the session to use for repository access.
 DependencyResolutionRequest setResolutionFilter(org.sonatype.aether.graph.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,
                                          org.sonatype.aether.RepositorySystemSession session)
Method Detail

getResolutionFilter

public org.sonatype.aether.graph.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 org.sonatype.aether.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(org.sonatype.aether.graph.DependencyFilter filter)
Description copied from interface: DependencyResolutionRequest
Sets the filter used to exclude some dependencies from resolution.

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(org.sonatype.aether.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-2011 The Apache Software Foundation. All Rights Reserved.