commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject cvs commit: jakarta-commons/betwixt/src/java/org/apache/commons/betwixt BeanProperty.java
Date Tue, 27 Apr 2004 20:01:47 GMT
rdonkin     2004/04/27 13:01:47

  Modified:    betwixt/src/java/org/apache/commons/betwixt Tag:
                        REFACTORING-BRANCH_2004-01-13 BeanProperty.java
  Log:
  Added support for array property setters
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.4.2.9   +10 -5     jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/BeanProperty.java
  
  Index: BeanProperty.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/BeanProperty.java,v
  retrieving revision 1.4.2.8
  retrieving revision 1.4.2.9
  diff -u -r1.4.2.8 -r1.4.2.9
  --- BeanProperty.java	3 Feb 2004 22:29:15 -0000	1.4.2.8
  +++ BeanProperty.java	27 Apr 2004 20:01:46 -0000	1.4.2.9
  @@ -244,7 +244,7 @@
               } else {
               
                   descriptor 
  -                    = createDescriptorForCollective( configuration, propertyExpression
);
  +                    = createDescriptorForCollective( configuration, propertyUpdater, propertyExpression
);
               }
           } else {
               if (log.isTraceEnabled()) {
  @@ -365,11 +365,13 @@
       /**
        * Creates an <code>ElementDescriptor</code> for a collective type property
        * @param configuration
  +     * @param propertyUpdater, <code>Updater</code> for the property, possibly
null
        * @param propertyExpression
        * @return
        */
       private ElementDescriptor createDescriptorForCollective(
           IntrospectionConfiguration configuration,
  +        Updater propertyUpdater,
           Expression propertyExpression) {
               
           ElementDescriptor result;
  @@ -381,6 +383,9 @@
           loopDescriptor.setPropertyName(getPropertyName());
           loopDescriptor.setPropertyType(getPropertyType());
           loopDescriptor.setHollow(true);
  +        // set the property updater (if it exists)
  +        // may be overridden later by the adder
  +        loopDescriptor.setUpdater(propertyUpdater);
           
           if ( configuration.isWrapCollectionsInElement() ) {
               // create wrapping desctiptor
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message