Indented code, made the link to the userguide a deep link

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1076128 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2011-03-02 07:31:46 +00:00
parent d999b5cefa
commit 8eda3ad6a4
1 changed files with 9 additions and 9 deletions

View File

@ -105,11 +105,11 @@ expensive object to a background thread while the application can continue with
the execution of other tasks. Here is an example of the usage of <code>BackgroundInitializer</code> the execution of other tasks. Here is an example of the usage of <code>BackgroundInitializer</code>
which creates an <code>EntityManagerFactory</code> object:</p> which creates an <code>EntityManagerFactory</code> object:</p>
<pre> <pre>
public class DBInitializer extends BackgroundInitialize&lt;EntityManagerFactory&gt; { public class DBInitializer extends BackgroundInitialize&lt;EntityManagerFactory&gt; {
protected EntityManagerFactory initialize() { protected EntityManagerFactory initialize() {
return Persistence.createEntityManagerFactory(&quot;mypersistenceunit&quot;); return Persistence.createEntityManagerFactory(&quot;mypersistenceunit&quot;);
}
} }
}
</pre> </pre>
<p>An application creates an instance of the <code>DBInitializer</code> class <p>An application creates an instance of the <code>DBInitializer</code> class
and calls its <code>start()</code> method. When it later needs access to the and calls its <code>start()</code> method. When it later needs access to the
@ -120,15 +120,15 @@ is complete. Alternatively a convenience method of the <code>ConcurrentUtils</co
class can be used to obtain the object from the initializer which hides the class can be used to obtain the object from the initializer which hides the
checked exception declared by <code>get()</code>:</p> checked exception declared by <code>get()</code>:</p>
<pre> <pre>
DBInitializer init = new DBInitializer(); DBInitializer init = new DBInitializer();
init.start(); init.start();
// now do some other stuff // now do some other stuff
EntityManagerFactory factory = ConcurrentUtils.initializeUnchecked(init); EntityManagerFactory factory = ConcurrentUtils.initializeUnchecked(init);
</pre> </pre>
<p>Comprehensive documentation about the <code>concurrent</code> package is <p>Comprehensive documentation about the <code>concurrent</code> package is
available in the <a href="userguide.html">user guide</a>.</p> available in the <a href="userguide.html#lang.concurrent.">user guide</a>.</p>
<h3>text.translate.*</h3> <h3>text.translate.*</h3>
<p>A common complaint with StringEscapeUtils was that its escapeXml and escapeHtml methods should not be escaping non-ASCII characters. We agreed and made the change while creating a modular approach to let users define their own escaping constructs. </p> <p>A common complaint with StringEscapeUtils was that its escapeXml and escapeHtml methods should not be escaping non-ASCII characters. We agreed and made the change while creating a modular approach to let users define their own escaping constructs. </p>
<p>The simplest way to show this is to look at the code that implements escapeXml:</p> <p>The simplest way to show this is to look at the code that implements escapeXml:</p>