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/event TaskEventManager.java
Date Tue, 23 Apr 2002 06:18:28 GMT
donaldp     02/04/22 23:18:28

  Added:       container/src/java/org/apache/myrmidon/interfaces/event
                        TaskEventManager.java
  Log:
  Add interface to manage event proporgation and registration for tasks
  
  Revision  Changes    Path
  1.1                  jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/event/TaskEventManager.java
  
  Index: TaskEventManager.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.interfaces.event;
  
  import org.apache.myrmidon.api.event.TaskEvent;
  import org.apache.myrmidon.api.event.TaskListener;
  
  /**
   * This interface is used to manage the {@link TaskEvent} firing
   * and registration of {@link TaskListener} objects.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/04/23 06:18:27 $
   * @todo Move fire* methods to a separate service
   */
  public interface TaskEventManager
  {
      /**
       * Add an extra project listener that wants to receive notification of listener events.
       *
       * @param listener the listener
       */
      void addTaskListener( TaskListener listener );
  
      /**
       * Remove a project listener that wants to receive notification of listener events.
       *
       * @param listener the listener
       */
      void removeTaskListener( TaskListener listener );
  
      /**
       * Fire a taskStarting event.
       */
      void fireTaskStarting( String path, String name, String location );
  
      /**
       * Fire a taskFinished event.
       */
      void fireTaskFinished( String path, String name, String location );
  
      /**
       * Fire a taskFinished event.
       */
      void fireTaskMessage( TaskEvent event );
  }
  
  
  

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