org.apache.avalon.composition.model
Interface ProfileSelector


public interface ProfileSelector

Interface defining the contract for profile selection.

Version:
$Revision: 1.4 $ $Date: 2004/02/21 23:54:42 $
Author:
Avalon Development Team

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

Method Detail

select

public DeploymentProfile select(DeploymentProfile[] 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 DeploymentProfile select(DeploymentProfile[] 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

select

public DeploymentProfile select(DeploymentProfile[] profiles,
                                ReferenceDescriptor reference)
Returns the preferred profile from an available selection of candidates profiles.

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


Copyright © The Apache Software Foundation. All Rights Reserved.