commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1128101 - /commons/sandbox/digester3/trunk/src/site/xdoc/guide/plugins.xml
Date Thu, 26 May 2011 22:05:00 GMT
Author: simonetripodi
Date: Thu May 26 22:05:00 2011
New Revision: 1128101

URL: http://svn.apache.org/viewvc?rev=1128101&view=rev
Log:
just reformatted sample code

Modified:
    commons/sandbox/digester3/trunk/src/site/xdoc/guide/plugins.xml

Modified: commons/sandbox/digester3/trunk/src/site/xdoc/guide/plugins.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/site/xdoc/guide/plugins.xml?rev=1128101&r1=1128100&r2=1128101&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/site/xdoc/guide/plugins.xml (original)
+++ commons/sandbox/digester3/trunk/src/site/xdoc/guide/plugins.xml Thu May 26 22:05:00 2011
@@ -48,21 +48,21 @@ Given the following digester rules in th
 <source>
         Digester digester = new Digester();
         PluginRules rc = new PluginRules();
-        digester.setRules(rc);
+        digester.setRules( rc );
 
-        digester.addObjectCreate("pipeline", Pipeline.class);
+        digester.addObjectCreate( "pipeline", Pipeline.class );
 
-        digester.addCallMethod("pipeline/source", "setSource", 1);
-        digester.addCallParam("pipeline/source", 0, "file");
+        digester.addCallMethod( "pipeline/source", "setSource", 1 );
+        digester.addCallParam( "pipeline/source", 0, "file" );
 
-        PluginCreateRule pcr = new PluginCreateRule(Transform.class);
-        digester.addRule("pipeline/transform", pcr);
-        digester.addSetNext("pipeline/transform", "setTransform");
+        PluginCreateRule pcr = new PluginCreateRule( Transform.class );
+        digester.addRule( "pipeline/transform", pcr );
+        digester.addSetNext( "pipeline/transform", "setTransform" );
 
         digester.addCallMethod("pipeline/destination", "setDest", 1);
         digester.addCallParam("pipeline/destination", 0, "file");
 
-        digester.parse(filename);
+        digester.parse( filename );
 </source>
 <p>
 the following input can be processed:



Mime
View raw message