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/framework AbstractContainerTask.java
Date Mon, 04 Jun 2001 12:46:35 GMT
donaldp     01/06/04 05:46:35

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/framework
                        AbstractContainerTask.java
  Log:
  Update Container class to use new configuration of attribute method.
  
  Revision  Changes    Path
  1.2       +21 -4     jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java
  
  Index: AbstractContainerTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractContainerTask.java	2001/06/03 13:11:41	1.1
  +++ AbstractContainerTask.java	2001/06/04 12:46:35	1.2
  @@ -27,6 +27,7 @@
    */
   public abstract class AbstractContainerTask
       extends AbstractTask
  +    implements Composable
   {
       ///For converting own attributes
       private MasterConverter     m_converter;
  @@ -95,15 +96,31 @@
       }
   
       /**
  -     * Configure a value using specific configuration element.
  +     * Configure an object using specific configuration element.
        *
  -     * @param child the child
  +     * @param object the object
        * @param element the configuration element
  +     * @exception ConfigurationException if an error occurs
  +     */
  +    protected final void configure( final Object object, final Configuration element )
  +        throws ConfigurationException
  +    {
  +        getConfigurer().configure( object, element, getContext() );
  +    }
  +
  +
  +    /**
  +     * Configure an objects attribute using parameters.
  +     *
  +     * @param object the object
  +     * @param name the attibute name
  +     * @param value the attibute value
  +     * @exception ConfigurationException if an error occurs
        */
  -    protected final void configure( final Object value, final Configuration element )
  +    protected final void configure( final Object object, final String name, final String
value )
           throws ConfigurationException
       {
  -        getConfigurer().configure( value, element, getContext() );
  +        getConfigurer().configure( object, name, value, getContext() );
       }
   
       /**
  
  
  

Mime
View raw message