commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1211655 - /commons/proper/digester/trunk/src/site/xdoc/guide/constructor.xml
Date Wed, 07 Dec 2011 21:51:59 GMT
Author: simonetripodi
Date: Wed Dec  7 21:51:59 2011
New Revision: 1211655

URL: http://svn.apache.org/viewvc?rev=1211655&view=rev
Log:
added the default constructor arguments description

Modified:
    commons/proper/digester/trunk/src/site/xdoc/guide/constructor.xml

Modified: commons/proper/digester/trunk/src/site/xdoc/guide/constructor.xml
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/site/xdoc/guide/constructor.xml?rev=1211655&r1=1211654&r2=1211655&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/site/xdoc/guide/constructor.xml (original)
+++ commons/proper/digester/trunk/src/site/xdoc/guide/constructor.xml Wed Dec  7 21:51:59
2011
@@ -113,5 +113,14 @@ digester.addCallParam( "root/bean/rate",
 &lt;/digester-rules&gt;</source>
       </subsection>
     </section>
+
+    <section name="Default constructor arguments">
+      <p>In order to provide that feature, Digester relies on <code>CGLIB</code>
that needs to proxy the class of the
+      target object, to avoid constructors issues users can use the
+      <code>ObjectCreateRule#setDefaultConstructorArguments(Object...)</code>
method to give safe construction
+      params to the constructor when creating the proxy; that method could be useful also
when one parameter needs to
+      take a static value while the other is handled with a <code>CallParam</code>
rule. If these are not specified,
+      the super constructor is called with nulls for Objects and default values for primitives.</p>
+    </section>
   </body>
 </document>



Mime
View raw message