org.apache.avalon.composition.model.impl
Class DefaultStageModel
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.composition.model.impl.DefaultDependent
org.apache.avalon.composition.model.impl.DefaultStageModel
- All Implemented Interfaces:
- Dependent, LogEnabled, StageModel
- public class DefaultStageModel
- extends DefaultDependent
- implements StageModel
Default implementation of the stage model.
- Version:
- $Revision: 1.7 $ $Date: 2004/03/17 10:39:10 $
- Author:
- Avalon Development Team
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultStageModel
public DefaultStageModel(Logger logger,
String partition,
StageDescriptor descriptor,
StageDirective directive)
throws ModelException
- Creation of a new stage model.
- Parameters:
logger
- the logging channelpartition
- the partition namedescriptor
- the stage descriptorsdirective
- the stage directive (possibly null)
getStage
public StageDescriptor getStage()
- Return the stage descriptor.
- Specified by:
getStage
in interface StageModel
- Returns:
- the descriptor
getPath
public String getPath()
- Return an explicit path to a supplier 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.
- Specified by:
getPath
in interface StageModel
- Returns:
- the explicit path
filter
public ExtensionDescriptor[] filter(ExtensionDescriptor[] candidates)
- Filter a set of candidate extension descriptors and return the
set of acceptable extensions as a ordered sequence.
- Specified by:
filter
in interface StageModel
- Parameters:
candidates
- the set of candidate stage providers
- Returns:
- the accepted candidates in ranked order
Copyright © The Apache Software Foundation. All Rights Reserved.