mcconnell 2002/07/07 18:13:01 Added: assembly/src/java/org/apache/excalibur/merlin/kernel Selector.java Log: moved from registry package to container package Revision Changes Path 1.1 jakarta-avalon-excalibur/assembly/src/java/org/apache/excalibur/merlin/kernel/Selector.java Index: Selector.java =================================================================== /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.apache.excalibur.merlin.kernel; import org.apache.excalibur.meta.data.Profile; /** * Interface implemented by a service selection implementation mechanism. Classes * implementing the selector interface may be activated during the selection of * candidate service providers in an autom assembly process. A selector my be * declared via inclusion a implemetation class nameed <code><service-type>Selector</code>. * Alternatively, a component author may declare a selection class explicitly via a * service dependecy attribute with the attribute name of <code>avalon.service.selector</code>. * * @author <a href="mailto:[EMAIL PROTECTED]">Stephen McConnell</a> * @version $Revision: 1.1 $ $Date: 2002/07/08 01:13:01 $ */ public interface Selector { /** * Returns the preferred profile form an available selection of candidate provider profiles. * @param facilities the set of profiles of potential service providers available in the * container hierachy * @param profiles the set of profiles of potential service providers contained with the * local container * @return the preferred provider or null if no satisfactory provider can be established * from the supplied profiles. */ Profile select( Profile[] facilities, Profile[] profiles ); }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>