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 DeploymentModel.java
Date Sun, 06 Jul 2003 02:58:06 GMT
mcconnell    2003/07/05 19:58:06

  Modified:    merlin/composition-spi/src/java/org/apache/avalon/composition/model
                        DeploymentModel.java
  Log:
  Add initial operation that deal with model information derived from a profile in conjunction
with a classloader.
  
  Revision  Changes    Path
  1.3       +30 -2     avalon-sandbox/merlin/composition-spi/src/java/org/apache/avalon/composition/model/DeploymentModel.java
  
  Index: DeploymentModel.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/merlin/composition-spi/src/java/org/apache/avalon/composition/model/DeploymentModel.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DeploymentModel.java	4 Jul 2003 15:24:55 -0000	1.2
  +++ DeploymentModel.java	6 Jul 2003 02:58:06 -0000	1.3
  @@ -51,7 +51,7 @@
   package org.apache.avalon.composition.model;
   
   import org.apache.avalon.framework.configuration.Configuration;
  -
  +import org.apache.avalon.meta.info.Type;
   
   /**
    * Deployment model defintion.
  @@ -61,11 +61,39 @@
    */
   public interface DeploymentModel extends Model
   {
  +
  +   /**
  +    * Return the deployment type.
  +    * 
  +    * @param the type
  +    */
  +    Type getType();
  +
      /**
       * Return the class for the deployable target.
       * @return the class
       */
       Class getDeploymentClass();
  +
  +   /**
  +    * Set the configuration to the supplied value.  The supplied 
  +    * configuration will replace the existing configuration.
  +    *
  +    * @param config the supplied configuration
  +    */
  +    void setConfiguration( Configuration config );
  +
  +   /**
  +    * Set the configuration to the supplied value.  The supplied 
  +    * configuration may suppliment or replace the existing configuration.
  +    *
  +    * @param config the supplied configuration
  +    * @param policy if TRUE the supplied configuration replaces the current
  +    *   configuration otherwise the resoved configuration shall be layed above
  +    *   the configuration supplied with the profile which in turn is layer above 
  +    *   the type default configuration (if any)
  +    */
  +    void setConfiguration( Configuration config, boolean policy );
   
      /**
       * Return the configuration to be applied to the component.
  
  
  

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


Mime
View raw message