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/aspect AspectManager.java
Date Sun, 21 Apr 2002 01:46:24 GMT
donaldp     02/04/20 18:46:24

  Modified:    container/src/java/org/apache/myrmidon/components/aspect
                        DefaultAspectManager.java
               container/src/java/org/apache/myrmidon/interfaces/aspect
                        AspectManager.java
  Log:
  Parameters --> Properties
  Configuration --> ModelElement
  
  Revision  Changes    Path
  1.15      +12 -9     jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/aspect/DefaultAspectManager.java
  
  Index: DefaultAspectManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/aspect/DefaultAspectManager.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- DefaultAspectManager.java	29 Mar 2002 12:56:03 -0000	1.14
  +++ DefaultAspectManager.java	21 Apr 2002 01:46:24 -0000	1.15
  @@ -8,14 +8,15 @@
   package org.apache.myrmidon.components.aspect;
   
   import java.util.HashMap;
  +import java.util.Properties;
   import org.apache.avalon.excalibur.i18n.ResourceManager;
   import org.apache.avalon.excalibur.i18n.Resources;
   import org.apache.avalon.framework.activity.Initializable;
  -import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.logger.Logger;
   import org.apache.avalon.framework.parameters.Parameters;
   import org.apache.myrmidon.api.Task;
   import org.apache.myrmidon.api.TaskException;
  +import org.apache.myrmidon.api.metadata.ModelElement;
   import org.apache.myrmidon.aspects.AspectHandler;
   import org.apache.myrmidon.aspects.NoopAspectHandler;
   import org.apache.myrmidon.interfaces.aspect.AspectManager;
  @@ -24,7 +25,7 @@
    * Manage and propogate Aspects.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.14 $ $Date: 2002/03/29 12:56:03 $
  + * @version $Revision: 1.15 $ $Date: 2002/04/21 01:46:24 $
    */
   public class DefaultAspectManager
       implements AspectManager, Initializable
  @@ -44,7 +45,8 @@
           addAspectHandler( "doc", new NoopAspectHandler() );
       }
   
  -    public synchronized void addAspectHandler( final String name, final AspectHandler handler
)
  +    public synchronized void addAspectHandler( final String name,
  +                                               final AspectHandler handler )
           throws TaskException
       {
           m_aspectMap.put( name, handler );
  @@ -76,8 +78,8 @@
       }
   
       public void dispatchAspectSettings( final String name,
  -                                        final Parameters parameters,
  -                                        final Configuration[] elements )
  +                                        final Properties parameters,
  +                                        final ModelElement[] elements )
           throws TaskException
       {
           final AspectHandler handler = (AspectHandler)m_aspectMap.get( name );
  @@ -90,10 +92,10 @@
           handler.aspectSettings( parameters, elements );
       }
   
  -    public Configuration preCreate( final Configuration configuration )
  +    public ModelElement preCreate( final ModelElement ModelElement )
           throws TaskException
       {
  -        Configuration model = configuration;
  +        ModelElement model = ModelElement;
   
           final AspectHandler[] aspects = m_aspects;
           for( int i = 0; i < aspects.length; i++ )
  @@ -104,7 +106,8 @@
           return model;
       }
   
  -    public void aspectSettings( final Parameters parameters, final Configuration[] elements
)
  +    public void aspectSettings( final Properties parameters,
  +                                final ModelElement[] elements )
           throws TaskException
       {
           final String message = REZ.getString( "no.settings" );
  @@ -131,7 +134,7 @@
           }
       }
   
  -    public void preConfigure( final Configuration taskModel )
  +    public void preConfigure( final ModelElement taskModel )
           throws TaskException
       {
           final AspectHandler[] aspects = m_aspects;
  
  
  
  1.10      +5 -4      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/aspect/AspectManager.java
  
  Index: AspectManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/aspect/AspectManager.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- AspectManager.java	1 Apr 2002 09:56:26 -0000	1.9
  +++ AspectManager.java	21 Apr 2002 01:46:24 -0000	1.10
  @@ -7,16 +7,17 @@
    */
   package org.apache.myrmidon.interfaces.aspect;
   
  -import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.parameters.Parameters;
   import org.apache.myrmidon.api.TaskException;
  +import org.apache.myrmidon.api.metadata.ModelElement;
   import org.apache.myrmidon.aspects.AspectHandler;
  +import java.util.Properties;
   
   /**
    * Manage and propogate Aspects..
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.9 $ $Date: 2002/04/01 09:56:26 $
  + * @version $Revision: 1.10 $ $Date: 2002/04/21 01:46:24 $
    */
   public interface AspectManager
       extends AspectHandler
  @@ -33,11 +34,11 @@
        * Dispatches aspect settings to the named AspectHandler.
        * @param name The name of the AspectHandler to recieve the settings.
        * @param parameters The parameter settings.
  -     * @param elements The nested Configuration settings.
  +     * @param elements The nested ModelElement settings.
        * @throws TaskException if the named AspectHandler doesn't exist,
        *                  or it cannot handle the settings.
        */
  -    void dispatchAspectSettings( String name, Parameters parameters, Configuration[] elements
)
  +    void dispatchAspectSettings( String name, Properties parameters, ModelElement[] elements
)
           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