ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/configurer DefaultObjectConfigurer.java Resources.properties
Date Tue, 23 Apr 2002 06:22:40 GMT
adammurdoch    02/04/22 23:22:40

  Modified:    container/src/java/org/apache/myrmidon/components/configurer
                        DefaultObjectConfigurer.java Resources.properties
  Log:
  Allow typed adders with a non-interface parameter (since ModelElement is not an interface).
  
  Revision  Changes    Path
  1.22      +1 -11     jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/configurer/DefaultObjectConfigurer.java
  
  Index: DefaultObjectConfigurer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/configurer/DefaultObjectConfigurer.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- DefaultObjectConfigurer.java	21 Apr 2002 02:41:23 -0000	1.21
  +++ DefaultObjectConfigurer.java	23 Apr 2002 06:22:40 -0000	1.22
  @@ -24,7 +24,7 @@
    * of a class.
    *
    * @author <a href="mailto:adammurdoch_ml@yahoo.com">Adam Murdoch</a>
  - * @version $Revision: 1.21 $ $Date: 2002/04/21 02:41:23 $
  + * @version $Revision: 1.22 $ $Date: 2002/04/23 06:22:40 $
    */
   class DefaultObjectConfigurer
       implements ObjectConfigurer
  @@ -154,16 +154,6 @@
   
           final Method method = (Method)methods.iterator().next();
           final Class type = method.getParameterTypes()[ 0 ];
  -
  -        // TODO - this isn't necessary
  -        if( !type.isInterface() )
  -        {
  -            final String message =
  -                REZ.getString( "typed-adder-non-interface.error",
  -                               m_class.getName(),
  -                               type.getName() );
  -            throw new ModelException( message );
  -        }
   
           m_typedPropertyConfigurer
               = new DefaultPropertyConfigurer( getPropertyCount(),
  
  
  
  1.19      +0 -1      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/configurer/Resources.properties
  
  Index: Resources.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/configurer/Resources.properties,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- Resources.properties	19 Mar 2002 11:19:23 -0000	1.18
  +++ Resources.properties	23 Apr 2002 06:22:40 -0000	1.19
  @@ -11,7 +11,6 @@
   no-such-element.error=Element <{0}> does not support nested <{1}> elements.
   no-content.error=Element <{0} does not support text content.
   bad-set-content.error=Could not set text content for element <{0}>.
  -typed-adder-non-interface.error=The typed adder for class "{0}" must have a single parameter
that is an interface rather than {1} which defines a class.
   create-typed-object.error=Could not create an object of type "{0}" of class {1}.
   unknown-reference.error=Could not find referenced object "{0}".
   bad-configure-element.error=Could not configure element <{0}>.
  
  
  

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