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-myrmidon/container/src/java/org/apache/myrmidon/interfaces/executor ExecutionFrame.java
Date Tue, 23 Apr 2002 07:21:05 GMT
donaldp     02/04/23 00:21:05

  Modified:    container/src/java/org/apache/myrmidon/interfaces/executor
                        ExecutionFrame.java
  Log:
  Expose TaskEventManager via frame so that event listening and generation can be scoped.
  
  Rename getProperties() to getPropertyStore()
  
  Add a method to expose name (so can be propogated via events)
  
  Also add a method to create child frames
  
  Revision  Changes    Path
  1.12      +39 -3     jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/executor/ExecutionFrame.java
  
  Index: ExecutionFrame.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/executor/ExecutionFrame.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ExecutionFrame.java	9 Apr 2002 02:26:35 -0000	1.11
  +++ ExecutionFrame.java	23 Apr 2002 07:21:05 -0000	1.12
  @@ -9,6 +9,7 @@
   
   import org.apache.avalon.framework.logger.Logger;
   import org.apache.avalon.framework.service.ServiceManager;
  +import org.apache.myrmidon.interfaces.event.TaskEventManager;
   import org.apache.myrmidon.interfaces.property.PropertyStore;
   
   /**
  @@ -21,7 +22,7 @@
    * a logger.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.11 $ $Date: 2002/04/09 02:26:35 $
  + * @version $Revision: 1.12 $ $Date: 2002/04/23 07:21:05 $
    */
   public interface ExecutionFrame
   {
  @@ -29,6 +30,15 @@
       String ROLE = ExecutionFrame.class.getName();
   
       /**
  +     * Returns the name of the execution frame.
  +     * This is used when generating TaskEvents as the
  +     * "path" element.
  +     *
  +     * @return the name of execution frame
  +     */
  +    String getName();
  +
  +    /**
        * Returns the set of services to use to create, configure, and execute
        * tasks.
        */
  @@ -40,7 +50,33 @@
       Logger getLogger();
   
       /**
  -     * Returns the set of properties to be supplied to tasks.
  +     * Returns the {@link PropertyStore} to be supplied to tasks.
  +     */
  +    PropertyStore getPropertyStore();
  +
  +    /**
  +     * Returns the {@link TaskEventManager} that can be used to fire events
  +     * or to register listeners.
  +     */
  +    TaskEventManager getTaskEventManager();
  +
  +    /**
  +     * Create a child execution frame.
  +     * The name of child frame is the current frames
  +     * name concaternated with "/" and the specified name.
  +     *
  +     * <p>If partition is true then this frame is considered a
  +     * partitioning frame. A partitioning frame is one which
  +     * creates new instances of {@link PropertyStore} and
  +     * {@link ServiceManager}. These new instances will inherit
  +     * values from the parent objects but any modifications
  +     * (ie additions or removals) will be local to this frame
  +     * (and child frames).</p>
  +     *
  +     * @param name the name of child frame relative to current frame
  +     * @param partition true if frame is partition frame
  +     * @return the new child ExecutionFrame
        */
  -    PropertyStore getProperties();
  +    ExecutionFrame createChildFrame( String name,
  +                                     boolean partition );
   }
  
  
  

--
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