mcconnell    2004/01/07 04:45:08

  Modified:    merlin/composition/api/src/java/org/apache/avalon/composition/model
                        Tag: Ver_3_4 ComponentModel.java
  Log:
  Addition of convinience operations support access to fependency and service provider 
models by descriptor.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.3   +20 -1     
avalon/merlin/composition/api/src/java/org/apache/avalon/composition/model/Attic/ComponentModel.java
  
  Index: ComponentModel.java
  ===================================================================
  RCS file: 
/home/cvs/avalon/merlin/composition/api/src/java/org/apache/avalon/composition/model/Attic/ComponentModel.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- ComponentModel.java       4 Jan 2004 21:28:59 -0000       1.1.2.2
  +++ ComponentModel.java       7 Jan 2004 12:45:08 -0000       1.1.2.3
  @@ -53,6 +53,8 @@
   import org.apache.avalon.composition.data.CategoriesDirective;
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.parameters.Parameters;
  +import org.apache.avalon.meta.info.DependencyDescriptor;
  +import org.apache.avalon.meta.info.StageDescriptor;
   import org.apache.avalon.meta.info.Type;
   
   /**
  @@ -223,11 +225,28 @@
       DependencyModel[] getDependencyModels();
   
      /**
  +    * Return a dependency model for a supplied descriptor or null
  +    * if no match found.
  +    *
  +    * @return the dependency model
  +    */
  +    DependencyModel getDependencyModel( DependencyDescriptor dependency );
  +
  +   /**
       * Return the stage models for this deployment model.
       *
       * @return the stage models
       */
       StageModel[] getStageModels();
  +
  +   /**
  +    * Return a stage model matching the supplied descriptor or null
  +    * if no match found.
  +    *
  +    * @param stage the stage descriptor
  +    * @return the matching stage model
  +    */
  +    StageModel getStageModel( StageDescriptor stage );
   
      /**
       * Return the set of services produced by the model as a array of classes.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to