JTools

org.jtools.depend
Interface DependencyAlgorithm<T_TargetKey,T_ItemKey>


public interface DependencyAlgorithm<T_TargetKey,T_ItemKey>

Defines an Algorithm to resolve Dependencies.

Author:
Rainer Noack
See Also:
Dependencies

Method Summary
 boolean requiresDeepDependencies()
          Indicates whether the algorithm requires deep dependency resolution.
 Collection<DependencyElement<T_TargetKey,T_ItemKey>> sort(Collection<DependencyElement<T_TargetKey,T_ItemKey>> targets)
          Sorts the targets with respect to the defined direct and indirect dependencies.
 

Method Detail

requiresDeepDependencies

boolean requiresDeepDependencies()
Indicates whether the algorithm requires deep dependency resolution.

Returns:
true if this algorithm requires deep dependency resolution, false otherwise.

sort

Collection<DependencyElement<T_TargetKey,T_ItemKey>> sort(Collection<DependencyElement<T_TargetKey,T_ItemKey>> targets)
                                                          throws DependencyException
Sorts the targets with respect to the defined direct and indirect dependencies.

Parameters:
targets - The declared DependencyTargets in their default order.
Returns:
The targets in the implied order.
Throws:
DependencyException - if an error occures.

JTools

© 2000-2006, JTools.org.