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 AbstractTask.java
Date Thu, 24 Jan 2002 11:35:56 GMT
donaldp     02/01/24 03:35:56

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/api
                        AbstractTask.java
  Log:
  Made tasks receive contexts directly rather than through Contextualizable interface as all
tasks will most likely use the context in soem fashion
  
  Also made getName protected again
  
  Revision  Changes    Path
  1.14      +4 -5      jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/api/AbstractTask.java
  
  Index: AbstractTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/api/AbstractTask.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- AbstractTask.java	5 Jan 2002 03:02:41 -0000	1.13
  +++ AbstractTask.java	24 Jan 2002 11:35:56 -0000	1.14
  @@ -20,7 +20,7 @@
    */
   public abstract class AbstractTask
       extends AbstractLogEnabled
  -    implements Task, Contextualizable
  +    implements Task
   {
       ///Variable to hold context for use by sub-classes
       private TaskContext m_context;
  @@ -30,9 +30,9 @@
        *
        * @param context the context
        */
  -    public void contextualize( final Context context )
  +    public void contextualize( final TaskContext context )
       {
  -        m_context = (TaskContext)context;
  +        m_context = context;
       }
   
       /**
  @@ -62,8 +62,7 @@
           return getContext().get( key );
       }
   
  -    //Will be made protected in the future
  -    public final String getName()
  +    protected final String getName()
       {
           return getContext().getName();
       }
  
  
  

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