ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/api Task.java
Date Thu, 24 Jan 2002 11:35:38 GMT
donaldp     02/01/24 03:35:37

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/api Task.java
  Log:
  Made tasks receive contexts directly rather than through Contextualizable interface as all
tasks will most likely use the context in soem fashion
  
  Revision  Changes    Path
  1.11      +13 -9     jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/api/Task.java
  
  Index: Task.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/api/Task.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Task.java	13 Jan 2002 14:50:56 -0000	1.10
  +++ Task.java	24 Jan 2002 11:35:37 -0000	1.11
  @@ -10,14 +10,12 @@
   /**
    * This is the interface that tasks implement to be executed in Myrmidon runtime.
    *
  - * Instances can also implement the Avalon lifecycle methods
  - * LogEnabled, Contextualizable, Composable, Initializable and Disposable.
  - * Each of these lifecycle stages will be executed at appropriate time.
  + * Instances can also implement the Avalon LogEnabled method to receive a logger.
    *
  - * Tasks can also choose to implement Configurable if they wish to directly
  + * Tasks can also choose to implement Avalon Configurable if they wish to directly
    * receive the Configuration data representing the task. If this interface is
  - * not implemented then the engine will be responsbil for mapping configuration
  - * to task object.
  + * not implemented then the container will be responsble for mapping configuration
  + * onto the task object.
    *
    * The Components passed in via ComponentManager are determined by container.
    *
  @@ -29,12 +27,18 @@
       String ROLE = "org.apache.myrmidon.api.Task";
   
       /**
  +     * Specify the context in which the task operates in.
  +     * The Task will use the TaskContext to receive information
  +     * about it's environment.
  +     */
  +    void contextualize( TaskContext context );
  +
  +    /**
        * Execute task.
        * This method is called to perform actual work associated with task.
  -     * It is called after Task has been Configured and Initialized and before
  -     * being Disposed (If task implements appropriate interfaces).
  +     * It is called after Task has been Configured.
        *
  -     * @exception TaskException if an error occurs
  +     * @exception TaskException if task fails to execute
        */
       void execute()
           throws TaskException;
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message