avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon-sandbox/merlin/composition-spi/src/java/org/apache/avalon/composition/model Model.java Consumer.java Producer.java
Date Mon, 07 Jul 2003 08:40:03 GMT
mcconnell    2003/07/07 01:40:03

  Modified:    merlin/composition-spi/src/java/org/apache/avalon/composition/model
                        Model.java
  Removed:     merlin/composition-spi/src/java/org/apache/avalon/composition/model
                        Consumer.java Producer.java
  Log:
  Merge Consumeer and Producer into Model.
  
  Revision  Changes    Path
  1.3       +42 -2     avalon-sandbox/merlin/composition-spi/src/java/org/apache/avalon/composition/model/Model.java
  
  Index: Model.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/merlin/composition-spi/src/java/org/apache/avalon/composition/model/Model.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Model.java	7 Jul 2003 08:31:19 -0000	1.2
  +++ Model.java	7 Jul 2003 08:40:02 -0000	1.3
  @@ -51,6 +51,9 @@
   package org.apache.avalon.composition.model;
   
   import org.apache.avalon.meta.data.Mode;
  +import org.apache.avalon.meta.info.DependencyDescriptor;
  +import org.apache.avalon.meta.info.ServiceDescriptor;
  +import org.apache.avalon.meta.info.StageDescriptor;
   
   /**
    * Abstract model interface.
  @@ -58,8 +61,12 @@
    * @author <a href="mailto:dev@avalon.apache.org">Avalon Development Team</a>
    * @version $Revision$ $Date$
    */
  -public interface Model extends Producer, Consumer
  +public interface Model
   {
  +    //-----------------------------------------------------------
  +    // model features
  +    //-----------------------------------------------------------
  +
      /**
       * Return the name of the model.
       * @return the name
  @@ -78,4 +85,37 @@
       */
       Mode getMode();
   
  +    //-----------------------------------------------------------
  +    // service production
  +    //-----------------------------------------------------------
  +    
  +   /**
  +    * Return the set of services produced by the model.
  +    * @return the services
  +    */
  +    ServiceDescriptor[] getServices();
  +
  +   /**
  +    * Return TRUE is this model is capable of supporting a supplied 
  +    * depedendency.
  +    * @return true if this model can fulfill the dependency
  +    */
  +    boolean isaCandidate( DependencyDescriptor dependency );
  +
  +   /**
  +    * Return TRUE is this model is capable of supporting a supplied 
  +    * stage dependency.
  +    * @return true if this model can fulfill the dependency
  +    */
  +    boolean isaCandidate( StageDescriptor stage );
  +
  +    //-----------------------------------------------------------
  +    // service consumption
  +    //-----------------------------------------------------------
  +    
  +   /**
  +    * Return the set of services that this model consumes.
  +    * @return the cumsumed depedencies
  +    */
  +    DependencyDescriptor[] getDependencies();
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message