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/beanutils/xdocs index.xml navigation.xml
Date Mon, 02 Aug 2004 19:49:22 GMT
rdonkin     2004/08/02 12:49:22

  Modified:    beanutils RELEASE-NOTES.txt build.xml project.xml
               beanutils/optional/bean-collections build.properties.sample
                        build.xml project.xml
               beanutils/optional/bean-collections/src/java/org/apache/commons/beanutils
                        BeanMap.java
               beanutils/optional/bean-collections/xdocs index.xml
               beanutils/src/java/org/apache/commons/beanutils
                        PropertyUtils.java PropertyUtilsBean.java
               beanutils/xdocs index.xml navigation.xml
  Added:       beanutils/optional/bean-collections/src/java overview.html
  Log:
  Merged in changes from the release
  
  Revision  Changes    Path
  1.12      +70 -147   jakarta-commons/beanutils/RELEASE-NOTES.txt
  
  Index: RELEASE-NOTES.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/RELEASE-NOTES.txt,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- RELEASE-NOTES.txt	18 Feb 2003 19:55:56 -0000	1.11
  +++ RELEASE-NOTES.txt	2 Aug 2004 19:49:20 -0000	1.12
  @@ -1,167 +1,90 @@
   $Id$
   
  +   Copyright 2001-2004 The Apache Software Foundation
   
  -                          Commons BeanUtils Package
  -                                Version 1.6.1
  -                               Release Notes
  -
  -INTRODUCTION:
  -============
  -
  -Beanutils 1.6.1 is a bug fix release. 
  -The 1.6 release notes can be found at the bottom of this document.
  -
  -CHANGES:
  -========
  -
  -The ConstructorUtils java docs have been improved.
  -
  -ConvertingWrapDynaBean
  -----------------------
  -
  -Use BeanUtils.copyProperty() instead of BeanUtils.setProperty() so that
  -Object->Object conversions -- via registered Converters, if any, are done.
  -
  -BeanUtils
  ----------
  -
  -Enhance BeanUtils.copyProperty() to deal with about 80% of the use cases for
  -copying indexed, mapped, and nested properties with type conversions.  The
  -remaining restrictions are documented in the Javadocs for this method.
  -
  -This is a partial response to Bugzilla #16525, which documents some
  -restrictions in the functionality of copyProperty() that leads people
  -to try setProperty() instead -- which they should not do.
  -
  -It is much more conservative than the proposed patch, which (as the reporter
  -acknowledges) is more appropriate in a minor update (1.7) versus a bugfix
  -patch (1.6.1) which is currently contemplated.
  -
  -BUG REPORTS ADDRESSED:
  -=====================
  -
  -16854 ResultSetDynaClass misspelled ResutSetDynaClass
  -16525 (partial) BeanUtils.setProperty is over-zealous at converting types
  -
  -
  -
  -
  +   Licensed under the Apache License, Version 2.0 (the "License");
  +   you may not use this file except in compliance with the License.
  +   You may obtain a copy of the License at
  +
  +       http://www.apache.org/licenses/LICENSE-2.0
  +
  +   Unless required by applicable law or agreed to in writing, software
  +   distributed under the License is distributed on an "AS IS" BASIS,
  +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  +   See the License for the specific language governing permissions and
  +   limitations under the License.
   
   
                             Commons BeanUtils Package
  -                                Version 1.6
  +                             Version 1.7.0
                                  Release Notes
   
   INTRODUCTION:
   ============
   
  -This document contains the release notes for this version of the Commons
  -BeanUtils package, and highlights changes since the previous version.
  -
  -
  -NEW FEATURES:
  -============
  -
  -New Classes
  ------------
  -
  -Initial checkin of a new class providing reflection utilities for constructors
  -(similar to MethodUtils). See org.apache.commons.beanutils.ConstructorUtils.
  -
  -Added a new DynaClass implementation that creates an in-memory collection of 
  -DyanBeans representing the results of a SQL query. 
  -See org.apache.commons.beanutils.RowSetDynaClass.java
  -
  -
  -DyanBeans Enhancements
  -----------------------
  -
  -Improved DynaProperty serialization on Java 1.3 by adding a custom 
  -serialization mechanism. Now primitive type classes will be correctly serialized 
  -on Java 1.3.
  -
  -ResultSetDynaClass: Made it possible to select an operational mode where column 
  -names are *not* lower cased when being converted into DynaBean property names.  
  -Because different JDBC drivers behave differently with regards to the case of 
  -the column names they return, using this mode will make your application
  -dependent upon the behavior of your particular JDBC driver.  However, there
  -are some circumstances when consciously selecting such dependence is
  -necessary.
  -
  -Cleaned up Javadoc generation warnings under JDK 1.4.
  -
  -BeanComparator Enhancements
  ----------------------------
  -
  -Added getComparator() property allowing retrieval of Comparator being used.
  -
  -Cleaned up Javadoc generation warnings under JDK 1.4.
  -
  -BeanUtils Enhancements
  -----------------------
  -
  -Enhanced the behavior of BeanUtils.setProperty() such that, if the destination
  -property is a String and there is a registered Converter for the value's
  -class, the value's toString() method will be called, followed by conversion
  -to the appropriate destination type.  Among other things, this makes it
  -possible to pass in a primitive wrapper type (such as Integer) and have it
  -converted to a String.
  -
  -Performance improvements.
  -
  -Java doc comments improvements.
  -
  -MethodUtils Enhancements
  -------------------------
  -
  -Made getMatchingAccessibleMethod public. 
  -
  -Converters Enhancements
  ------------------------
  -
  -Added support for Number types in numeric converter classes.
  -
  -LocaleConvertUtils Enhancements
  --------------------------------
  -
  -Cleaned up Javadoc generation warnings under JDK 1.4.  
  -
  -DateLocaleConverter Enhancements
  ---------------------------------
  -
  -Added new Lenient property that allows lenient to be get and set on the 
  -underlying date formatter.
  -
  -DEPRECATED
  -==========
  -
  -org.apache.common.beanutils.BeanUtils getDebug(), setDebug() 
  -    (replaced by commons-logging)
  -    
  -org.apache.common.beanutils.PropertyUtils getDebug(), setDebug() 
  -    (replaced by commons-logging)
  +Beanutils 1.7.0 is a service release aimed at providing compatibility
  +with both the commons collections 2.x series of releases 
  +and the commons collections 3.x series of releases
   
   CHANGES:
   ========
   
  -Various documentation fixes by several people.
  +Upgraded License To Apache License 2.0
  +--------------------------------------
  +Beanutils is now released under the Apache License 2.0. 
  +See http://www.apache.org/licenses/LICENSE-2.0.
  +
  +Beanification
  +-------------
  +Creation of objects to back the static utility classes. These object are 
  +per-context-classloader pseudo-singletons. Each web or enterprise application 
  +is therefore isolated from changes made to the state of others suing the
  +static facades. Greater flexibility of implementation is encourage since users
  +can subclass and then set their own implementations. Calls to the static facades 
  +will then be passed to that implementation.
  +
  +Removal Of Commons Collections Dependency
  +-----------------------------------------
  +The commons collections dependency is in the process of being removed
  +from core beanutils. This will reduce the number of dependencies for
  +the core beanutils and also will allow beanutils to used with both
  +collection 2.x and collection 3.x releases.
  +
  +Documentation Improvements
  +--------------------------
  +Many thanks to all those kind souls who've contributed documentation :)
  +
  + 
  +ENHANCEMENTS:
  +=============
  +
  +BeanAccessLanguageException & NestNullException
  +-----------------------------------------------
  +Added new subclasses of RuntimeException so that bean access language
  +exceptions can be trapped by users.
  +
  +BeanComparator
  +--------------
  +Added no-argument constructor for use in bean-centric environments.
  +
  +ConvertUtilsBean
  +----------------
  +Added a File converter and registered the File and URL converters by default
  +
   
   BUG REPORTS ADDRESSED:
   =====================
  +   #14848 Converted localized versions of beanutils and convert utils to use 
  +          delegated singletons. Now instances with the functionality in these 
  +          classes can be created.  
  +          Added public constructors for the utility objects (BeanUtilsBean, 
  +          PropertyUtilsBean and ConvertUtilsBean). Add public accessor properties
  +          for the ConvertUtilsBean and PropertyUtilsBean instances used by a 
  +          BeanUtilsBean. This allows BeanUtilsBean objects to be created with 
  +          independent registered converters and independent caches.  Also added
  +          test cases. 
  +   #17663 Made BeanUtils.getArrayProperty conversions use ConvertUtils 
  +          (rather than just toString)
  +   #18918 This bug prevented converters from being correctly deregistered
  +   #19850 Now cloneBean will deal successfully with DynaBeans.
   
  -15067 BaseDynaBean, BasicDynaClass not serializable
  -15773 setProperty throws exception on null value
  -15170 BeanUtils.setProperty doesn't convert primitive wrappers
  -15004 BeanUtils.copyProperties goes though wasted processing
  -15160 speedup for beanutils / array getter
  -14620 exception thrown when logging is set to debug
  -14170 ConvertUtils.convert(Object) doesn't use registered converter
  -10167 Mapped properties require getter
  -14394 Excessive exceptions log under (restrictive) security manager
  -14667 PropertyUtils.copyProperties does not copy to DynaBean
  -14440 PropertyUtils.setProperty ignores property setter
  -15004 BeanUtils.copyProperties goes through wasted processing
  -14796 ResultSetDynaClass.createDynaProperty users getColumnName()
  -15773 setProperty throws exception on null value
  -15908 commons-beanutils.jar debug info line numbers off by a factor of 2
  -15888 lenient method is loose in DateLocaleConverter
  
  
  
  1.62      +17 -17    jakarta-commons/beanutils/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/build.xml,v
  retrieving revision 1.61
  retrieving revision 1.62
  diff -u -r1.61 -r1.62
  --- build.xml	16 Jul 2004 12:33:47 -0000	1.61
  +++ build.xml	2 Aug 2004 19:49:20 -0000	1.62
  @@ -59,7 +59,7 @@
     <property name="component.title"         value="Bean Introspection Utilities"/>
   
     <!-- The current version number of this component -->
  -  <property name="component.version"       value="1.7-dev"/>
  +  <property name="component.version"       value="1.7"/>
   
     <!-- The base directory for compilation targets -->
     <property name="build.home"              value="target"/>
  @@ -470,15 +470,6 @@
         <classpath refid="test.classpath"/>
       </java>
     </target>
  -  
  -  <target name="test.beanification" depends="compile.tests">
  -    <echo message="Running Beanification tests ..."/>
  -    <java classname="${test.runner}" fork="yes"
  -        failonerror="${test.failonerror}">
  -      <arg value="org.apache.commons.beanutils.BeanificationTestCase"/>
  -      <classpath refid="test.classpath"/>
  -    </java>
  -  </target>
   
     <target name="test.lazy.dynaclass" depends="compile.tests">
       <echo message="Running LazyDynaClass tests ..."/>
  @@ -495,8 +486,8 @@
       </java>
     </target>
   
  -  <target name="test.lazy.dynabean" depends="compile.tests">
  -    <echo message="Running LazyDynaBean tests ..."/>
  +  <target name="test.lazy.dynamap" depends="compile.tests">
  +    <echo message="Running LazyDynaMap tests ..."/>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
         <sysproperty key="org.apache.commons.logging.LogFactory"
  @@ -505,13 +496,22 @@
                    value="${test.log}"/>
         <sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
                    value="${test.level}"/>
  -      <arg value="org.apache.commons.beanutils.LazyDynaBeanTestCase"/>
  +      <arg value="org.apache.commons.beanutils.LazyDynaMapTestCase"/>
  +      <classpath refid="test.classpath"/>
  +    </java>
  +  </target>
  +  
  +  <target name="test.beanification" depends="compile.tests">
  +    <echo message="Running Beanification tests ..."/>
  +    <java classname="${test.runner}" fork="yes"
  +        failonerror="${test.failonerror}">
  +      <arg value="org.apache.commons.beanutils.BeanificationTestCase"/>
         <classpath refid="test.classpath"/>
       </java>
     </target>
   
  -  <target name="test.lazy.dynamap" depends="compile.tests">
  -    <echo message="Running LazyDynaMap tests ..."/>
  +  <target name="test.lazy.dynabean" depends="compile.tests">
  +    <echo message="Running LazyDynaBean tests ..."/>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
         <sysproperty key="org.apache.commons.logging.LogFactory"
  @@ -520,7 +520,7 @@
                    value="${test.log}"/>
         <sysproperty key="org.apache.commons.logging.simplelog.defaultlog"
                    value="${test.level}"/>
  -      <arg value="org.apache.commons.beanutils.LazyDynaMapTestCase"/>
  +      <arg value="org.apache.commons.beanutils.LazyDynaBeanTestCase"/>
         <classpath refid="test.classpath"/>
       </java>
     </target>
  
  
  
  1.24      +1 -1      jakarta-commons/beanutils/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/project.xml,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- project.xml	13 Jul 2004 12:46:02 -0000	1.23
  +++ project.xml	2 Aug 2004 19:49:20 -0000	1.24
  @@ -18,7 +18,7 @@
     <pomVersion>3</pomVersion>
     <id>commons-beanutils</id>
     <name>BeanUtils</name>
  -  <currentVersion>1.7-dev</currentVersion>
  +  <currentVersion>1.7</currentVersion>
     <inceptionYear>2000</inceptionYear>
     <shortDescription>Commons BeanUtils</shortDescription>
     <description>BeanUtils provides an easy-to-use but flexible wrapper around reflection
and introspection.</description>
  
  
  
  1.3       +2 -2      jakarta-commons/beanutils/optional/bean-collections/build.properties.sample
  
  Index: build.properties.sample
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/optional/bean-collections/build.properties.sample,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.properties.sample	11 May 2004 22:45:39 -0000	1.2
  +++ build.properties.sample	2 Aug 2004 19:49:21 -0000	1.3
  @@ -13,11 +13,11 @@
   #   limitations under the License.
   
   # The home directory for the Commons collection classes distribution
  -commons-collections.home = ../collections/dist
  +commons-collections.home= ../collections/dist
   
   # The pathname of the collections classes JAR file
   commons-collections.jar = ${commons-collections.home}/commons-collections.jar
  -commons-collections.jar = ${commons-collections.home}/commons-collections-testframework-3.0-dev.jar
  +commons-collections-testframework.jar = ${commons-collections.home}/commons-collections-testframework-3.0-dev.jar
   
   # The home directory for the Commons logging classes distribution
   commons-logging.home = ../logging/dist
  
  
  
  1.3       +3 -3      jakarta-commons/beanutils/optional/bean-collections/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/optional/bean-collections/build.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.xml	11 May 2004 22:45:39 -0000	1.2
  +++ build.xml	2 Aug 2004 19:49:21 -0000	1.3
  @@ -71,10 +71,10 @@
     <property name="component.package"       value="org.apache.commons.beanutils"/>
   
     <!-- The title of this component -->
  -  <property name="component.title"         value="Bean Introspection Utilities"/>
  +  <property name="component.title"         value="Bean Utilities Bean Collections"/>
   
     <!-- The current version number of this component -->
  -  <property name="component.version"       value="1.7-dev"/>
  +  <property name="component.version"       value="1.7"/>
   
     <!-- The base directory for compilation targets -->
     <property name="build.home"              value="target"/>
  
  
  
  1.4       +1 -1      jakarta-commons/beanutils/optional/bean-collections/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/optional/bean-collections/project.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- project.xml	24 May 2004 20:41:40 -0000	1.3
  +++ project.xml	2 Aug 2004 19:49:21 -0000	1.4
  @@ -19,7 +19,7 @@
     <pomVersion>3</pomVersion>
     <id>commons-beanutils-bean-collections</id>
     <name>BeanUtils Bean Collections</name>
  -  <currentVersion>1.7-dev</currentVersion>
  +  <currentVersion>1.7</currentVersion>
     <inceptionYear>2000</inceptionYear>
     <shortDescription>Commons BeanUtils Bean Collections</shortDescription>
     <description>Extensions of commons collections focussing on collections of beans</description>
  
  
  
  1.2       +19 -0     jakarta-commons/beanutils/optional/bean-collections/src/java/overview.html
  
  
  
  
  1.3       +5 -2      jakarta-commons/beanutils/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanMap.java
  
  Index: BeanMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/optional/bean-collections/src/java/org/apache/commons/beanutils/BeanMap.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BeanMap.java	24 May 2004 19:56:51 -0000	1.2
  +++ BeanMap.java	2 Aug 2004 19:49:21 -0000	1.3
  @@ -42,7 +42,6 @@
    * If an exception occurs during attempts to get or set a property then the
    * property is considered non existent in the Map
    *
  - * @since Commons Collections 1.0
    * @version $Revision$ $Date$
    * 
    * @author James Strachan
  @@ -159,6 +158,10 @@
       // Map interface
       //-------------------------------------------------------------------------
   
  +    /**
  +     * Renders a string representation of this object.
  +     * @return a <code>String</code> representation of this object
  +     */
       public String toString() {
           return "BeanMap<" + String.valueOf(bean) + ">";
       }
  
  
  
  1.3       +7 -0      jakarta-commons/beanutils/optional/bean-collections/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/optional/bean-collections/xdocs/index.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- index.xml	3 Jun 2004 20:27:52 -0000	1.2
  +++ index.xml	2 Aug 2004 19:49:21 -0000	1.3
  @@ -73,6 +73,13 @@
           </p>
       </subsection>
   </section>
  +<section name='Releases'>
  +        <p>
  +BeanUtils Bean-Collections is distributed as an optional jar within the main 
  +beanutils distribution. For details, see the 
  +<a href='http://jakarta.apache.org/commons/beanutils/index.html'>main BeanUtils website</a>
  +        </p>
  +</section>
   
   </body>
   </document>
  
  
  
  1.43      +3 -1      jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/PropertyUtils.java
  
  Index: PropertyUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/PropertyUtils.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- PropertyUtils.java	28 Feb 2004 13:18:33 -0000	1.42
  +++ PropertyUtils.java	2 Aug 2004 19:49:21 -0000	1.43
  @@ -233,6 +233,7 @@
        * <p>For more details see <code>PropertyUtilsBean</code>.</p>
        *
        * @see PropertyUtilsBean#getMappedPropertyDescriptors(Class)
  +     * @deprecated This method should not be exposed
        */
       public static FastHashMap getMappedPropertyDescriptors(Class beanClass) {
   	
  @@ -247,6 +248,7 @@
        * <p>For more details see <code>PropertyUtilsBean</code>.</p>
        *
        * @see PropertyUtilsBean#getMappedPropertyDescriptors(Object)
  +     * @deprecated This method should not be exposed
        */
       public static FastHashMap getMappedPropertyDescriptors(Object bean) {
   
  
  
  
  1.15      +3 -1      jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java
  
  Index: PropertyUtilsBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- PropertyUtilsBean.java	28 Feb 2004 13:18:33 -0000	1.14
  +++ PropertyUtilsBean.java	2 Aug 2004 19:49:21 -0000	1.15
  @@ -574,6 +574,7 @@
        * <p><strong>FIXME</strong> - Does not work with DynaBeans.</p>
        *
        * @param beanClass Bean class to be introspected
  +     * @deprecated This method should not be exposed
        */
       public FastHashMap getMappedPropertyDescriptors(Class beanClass) {
   
  @@ -593,6 +594,7 @@
        * <p><strong>FIXME</strong> - Does not work with DynaBeans.</p>
        *
        * @param bean Bean to be introspected
  +     * @deprecated This method should not be exposed
        */
       public FastHashMap getMappedPropertyDescriptors(Object bean) {
   
  
  
  
  1.7       +11 -2     jakarta-commons/beanutils/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/xdocs/index.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- index.xml	17 Jun 2004 13:36:15 -0000	1.6
  +++ index.xml	2 Aug 2004 19:49:22 -0000	1.7
  @@ -115,12 +115,21 @@
       Source releases are available
          <a href="http://jakarta.apache.org/site/sourceindex.cgi">here</a>
   </p>
  -<p>
  +</subsection>
  +<subsection name='1.7.x Releases (Mirrored)'>
  +    <p>
  +<strong>BeanUtils 1.7.0</strong> is a service release which removes the dependency
  +upon a specific commons-collection library version. It may be safely used together
  +with either the 2.x or 3.x series of commons-collections releases.
  +It also introduces a number of important enhancements. It is backward compatible
  +with the 1.6 release.
  +    </p>
  +</subsection>
  +<subsection name='1.6.x Releases (Mirrored)'>
   <ul>
          <li>Version 1.6.1 (latest) - 18 Feb 2003</li>
          <li>Version 1.6 - 21 Jan 2003</li>
   </ul>
  -</p>
       </subsection>
       <subsection name='Older Releases (Not Mirrored)'>
       <p>
  
  
  
  1.8       +1 -1      jakarta-commons/beanutils/xdocs/navigation.xml
  
  Index: navigation.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/xdocs/navigation.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- navigation.xml	24 May 2004 21:29:32 -0000	1.7
  +++ navigation.xml	2 Aug 2004 19:49:22 -0000	1.8
  @@ -39,7 +39,7 @@
       </menu>
       
       <menu name='Modules'>
  -        <item name="Bean Collections" href="http://jakarta.apache.org/commons/beanutils/bean-collections/index.html"/>
  +        <item name="Bean Collections" href="bean-collections/index.html"/>
       </menu>
       
       &common-menus;
  
  
  

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