org.apache.avalon.composition.model
Interface DependencyModel

All Known Implementing Classes:
DefaultDependencyModel

public interface DependencyModel

Dependency model handles the establishment of an explicit source provider defintion or service provider selection rules.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/08/31 14:27:14 $
Author:
Avalon Development Team

Method Summary
 ServiceDescriptor[] filter(ServiceDescriptor[] candidates)
          Filter a set of candidate service descriptors and return the set of acceptable service as a ordered sequence.
 DependencyDescriptor getDependency()
          Return the dependency descriptor for the model.
 String getPath()
          Return an explicit path to a component.
 

Method Detail

getDependency

public DependencyDescriptor getDependency()
Return the dependency descriptor for the model.

Returns:
the descriptors declaring the component dependency

getPath

public String getPath()
Return an explicit path to a component. If a dependency directive has been declared and the directive contains a source declaration, the value returned is the result of parsing the source value relative to the absolute address of the dependent component.

Returns:
the explicit path

filter

public ServiceDescriptor[] filter(ServiceDescriptor[] candidates)
Filter a set of candidate service descriptors and return the set of acceptable service as a ordered sequence.

Parameters:
candidates - the set of candidate services for the dependency
Returns:
the accepted candidates in ranked order


Copyright © Apache Software Foundation. All Rights Reserved.