org.apache.avalon.composition.model
Interface StageModel

All Known Implementing Classes:
DefaultStageModel

public interface StageModel

Stage model handles the establishment of an explicit source extension defintion or stage provider selection based on extension qualification.

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

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

Method Detail

getStage

public StageDescriptor getStage()
Return the stage descriptor for the model.

Returns:
the descriptor declaring the component stage dependency

getPath

public String getPath()
Return an explicit path to a component. If a stage 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 ExtensionDescriptor[] filter(ExtensionDescriptor[] 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 extension providers for the stage dependency
Returns:
the accepted candidates in ranked order


Copyright © Apache Software Foundation. All Rights Reserved.