avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/assembly/src/java/org/apache/excalibur/merlin Selector.java
Date Fri, 12 Jul 2002 11:31:38 GMT
mcconnell    2002/07/12 04:31:38

  Added:       assembly/src/java/org/apache/excalibur/merlin Selector.java
  Log:
  pluggable profile selection interface
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-excalibur/assembly/src/java/org/apache/excalibur/merlin/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;
  
  
  /**
   * 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>&lt;service-type&gt;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:mcconnell@apache.org">Stephen McConnell</a>
   * @version $Revision: 1.1 $ $Date: 2002/07/12 11:31:38 $
   */
  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:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message