org.apache.maven.jelly.tags.maven
Class DependencyResolver

java.lang.Object
  extended byorg.apache.maven.jelly.tags.maven.DependencyResolver
All Implemented Interfaces:
DependencyResolverInterface

public class DependencyResolver
extends java.lang.Object
implements DependencyResolverInterface

Version:
$Id: DependencyResolver.java 517014 2007-03-11 21:15:50Z ltheussl $
Author:
Ben Walding

Constructor Summary
DependencyResolver()
          Creates the dependency resolver.
DependencyResolver(DependencyResolverInterface impl)
          Creates the dependency resolver with a specific implementation
 
Method Summary
 void clear()
          Clear the project list and set the graph built flag to false.
static Project getProject(java.util.List projects, java.lang.String id)
           
 java.util.List getSortedDependencies(boolean sourceBuild)
          Get the list of projects in dependency sorted order.
 java.util.List getSortedDependencies(Project project)
          Get the list of projects in dependency sorted order.
 java.util.List getSortedDependencies(Project project, boolean sourceBuild)
          Get the list of projects in dependency sorted order.
 void setProjects(java.util.List projects)
          Set a list of projects to process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyResolver

public DependencyResolver()
Creates the dependency resolver. The implementation is chosen by the System property "maven.core.dependencyresolver". By default it is the WerkzDependencyResolver. Ultimately I see this proxy being removed.

See Also:
Object.Object()

DependencyResolver

public DependencyResolver(DependencyResolverInterface impl)
Creates the dependency resolver with a specific implementation

Parameters:
impl -
Method Detail

clear

public void clear()
Description copied from interface: DependencyResolverInterface
Clear the project list and set the graph built flag to false.

Specified by:
clear in interface DependencyResolverInterface
See Also:
DependencyResolverInterface.clear()

setProjects

public void setProjects(java.util.List projects)
Description copied from interface: DependencyResolverInterface
Set a list of projects to process.

Specified by:
setProjects in interface DependencyResolverInterface
Parameters:
projects - List of projects.
See Also:
DependencyResolverInterface.setProjects(java.util.List)

getSortedDependencies

public java.util.List getSortedDependencies(Project project)
                                     throws DependencyResolverException
Description copied from interface: DependencyResolverInterface
Get the list of projects in dependency sorted order.

Specified by:
getSortedDependencies in interface DependencyResolverInterface
Parameters:
project - The project to use as the head of the graph.
Returns:
The list of projects.
Throws:
DependencyResolverException - If an error occurs while processing the graph.
See Also:
DependencyResolverInterface.getSortedDependencies(org.apache.maven.project.Project)

getSortedDependencies

public java.util.List getSortedDependencies(Project project,
                                            boolean sourceBuild)
                                     throws DependencyResolverException
Description copied from interface: DependencyResolverInterface
Get the list of projects in dependency sorted order.

Specified by:
getSortedDependencies in interface DependencyResolverInterface
Parameters:
project - The project to use as the head of the graph.
sourceBuild - Indicate we are performing a source build.
Returns:
The list of projects.
Throws:
DependencyResolverException - If an error occurs while processing the graph.
See Also:
DependencyResolverInterface.getSortedDependencies(org.apache.maven.project.Project, boolean)

getSortedDependencies

public java.util.List getSortedDependencies(boolean sourceBuild)
                                     throws DependencyResolverException
Description copied from interface: DependencyResolverInterface
Get the list of projects in dependency sorted order.

Specified by:
getSortedDependencies in interface DependencyResolverInterface
Parameters:
sourceBuild - Flag to indicate we are performing a source build.
Returns:
The list of projects.
Throws:
DependencyResolverException - If an error occurs while processing the graph.
See Also:
DependencyResolverInterface.getSortedDependencies(boolean)

getProject

public static Project getProject(java.util.List projects,
                                 java.lang.String id)


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.