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/components/aspect DefaultAspectManager.java
Date Tue, 05 Jun 2001 04:36:25 GMT
donaldp     01/06/04 21:36:25

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/components/aspect
                        DefaultAspectManager.java
  Log:
  Update for new method signatures.
  
  Revision  Changes    Path
  1.2       +9 -2      jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/aspect/DefaultAspectManager.java
  
  Index: DefaultAspectManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/aspect/DefaultAspectManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultAspectManager.java	2001/06/04 12:45:33	1.1
  +++ DefaultAspectManager.java	2001/06/05 04:36:24	1.2
  @@ -9,6 +9,7 @@
   
   import java.util.ArrayList;
   import org.apache.avalon.framework.configuration.Configuration;
  +import org.apache.avalon.framework.parameters.Parameters;
   import org.apache.log.Logger;
   import org.apache.myrmidon.api.Task;
   import org.apache.myrmidon.api.TaskException;
  @@ -51,6 +52,12 @@
           return model;
       }
   
  +    public void aspect( final Parameters parameters, final Configuration[] elements )
  +        throws TaskException
  +    {
  +        throw new UnsupportedOperationException( "Can not provide parameters to AspectManager"
); 
  +    }
  +
       public void postCreate( final Task task )
           throws TaskException
       {
  @@ -71,13 +78,13 @@
           }
       }
   
  -    public void preConfigure()
  +    public void preConfigure( final Configuration taskModel )
           throws TaskException
       {
           final AspectHandler[] aspects = m_aspects;
           for( int i = 0; i < aspects.length; i++ )
           {
  -            aspects[ i ].preConfigure();
  +            aspects[ i ].preConfigure( taskModel );
           }
       }
   
  
  
  

Mime
View raw message