Author: simonetripodi
Date: Wed Oct 19 07:46:38 2011
New Revision: 1186012
URL: http://svn.apache.org/viewvc?rev=1186012&view=rev
Log:
fixed broken XML entities
no needs of having a separate section
Modified:
commons/proper/digester/trunk/src/site/xdoc/guide/async.xml
Modified: commons/proper/digester/trunk/src/site/xdoc/guide/async.xml
URL:
http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/site/xdoc/guide/async.xml?rev=1186012&r1=1186011&r2=1186012&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/site/xdoc/guide/async.xml (original)
+++ commons/proper/digester/trunk/src/site/xdoc/guide/async.xml Wed Oct 19
07:46:38 2011
@@ -35,8 +35,7 @@ limitations under the License.
</ul>
<p><strong>Note</strong> keep always in mind the every single
<code>Digester</code> instance is NOT thread-safety,
so please use the <i>asynchronous</i> feature carefully!!!</p>
- </section>
- <section name="Async in action">
+
<subsection name="Using Digester Loader">
<p>First of all, setup the <code>DigesterLoader</code> with
<code>java.util.concurrent.ExecutorService</code>:</p>
<source>final DigesterLoader digesterLoader = newLoader( new
AbstractRulesModule()
@@ -53,7 +52,7 @@ limitations under the License.
<p>Then create the Digester and run the <code>parse</code> method
asynchronously:</p>
<source>Digester digester = digesterLoader.newDigester();
...
-Future<Employee> future = digester.asyncParse( new URL(
"http://my.rest.server/employees/10" ) );</source>
+Future<Employee> future = digester.asyncParse( new URL(
"http://my.rest.server/employees/10" ) );</source>
</subsection>
<subsection name="Using directly with the Digester">
@@ -64,7 +63,7 @@ digester.addObjectCreate( "employee", Em
digester.setExecutorService(
java.util.concurrent.Executors.newFixedThreadPool( 10 ) );
</source>
<p>Then run the <code>parse</code> method asynchronously:</p>
- <source>Future<Employee> future = digester.asyncParse( new URL(
"http://my.rest.server/employees/10" ) );</source>
+ <source>Future<Employee> future = digester.asyncParse( new URL(
"http://my.rest.server/employees/10" ) );</source>
</subsection>
</section>
</body>