org.apache.avalon.composition.model
Interface ProfileSelector


public interface ProfileSelector

Interface defining the contract for profile selection.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/09/24 09:31:20 $
Author:
Avalon Development Team

Method Summary
 Profile select(Profile[] profiles, DependencyDescriptor dependency)
          Returns the preferred profile from an available selection of candidates profiles.
 Profile select(Profile[] profiles, StageDescriptor stage)
          Returns the preferred profile from an available selection of candidates profiles.
 

Method Detail

select

public Profile select(Profile[] profiles,
                      DependencyDescriptor dependency)
Returns the preferred profile from an available selection of candidates profiles.

Parameters:
profiles - the set of candidate profiles
dependency - a service dependency
Returns:
the preferred profile or null if no satisfactory profile can be established

select

public Profile select(Profile[] profiles,
                      StageDescriptor stage)
Returns the preferred profile from an available selection of candidates profiles.

Parameters:
profiles - the set of candidate profiles
stage - a stage dependency
Returns:
the preferred extension provider profile or null if no satisfactory profile can be established


Copyright © Apache Software Foundation. All Rights Reserved.