cern.jjar.repository
Class DependencyEngine
java.lang.Object
cern.jjar.repository.DependencyEngine
public class DependencyEngine
- extends Object
Simple class to figure out ordered dependency lists. Basic idea is that you
load it with datum consisting of a set consisting of a package name and list
of packages that it's dependent upon.
Then, you should be able to ask for the dependencies for any package placed
in there.
- Version:
- $Id: DependencyEngine.java,v 1.12 2006/12/17 12:37:59 enes Exp $
- Author:
- Geir Magnusson Jr. (original idea from Jakarta), Lionel Mestre
Method Summary |
Dependency[] |
getDependencies(Dependency[] dependenciesToResolve,
boolean excludeTarget,
Version defaultVersion,
boolean forceAll)
returns a list of dependencies for a list of projects, each project being
included in the dependencies list |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DependencyEngine
public DependencyEngine(Repository repository)
getDependencies
public Dependency[] getDependencies(Dependency[] dependenciesToResolve,
boolean excludeTarget,
Version defaultVersion,
boolean forceAll)
- returns a list of dependencies for a list of projects, each project being
included in the dependencies list
- Parameters:
dependenciesToResolve
- packages to get dependency list forexcludeTarget
- boolean to control exclusion of each target packagedefaultVersion
- the default version to use if no version specified
- Returns:
- List list of dependencies, in order
Copyright © 2007 CERN. All Rights Reserved.