Replace 'recourse' with simpler terms (SPR-7339)
This commit is contained in:
parent
bab902e85b
commit
b87b23087d
|
|
@ -303,9 +303,9 @@ sender.send(message);]]></programlisting>
|
||||||
create your email template(s), you will need to have the Velocity libraries
|
create your email template(s), you will need to have the Velocity libraries
|
||||||
available on your classpath. You will also need to create one or more Velocity templates
|
available on your classpath. You will also need to create one or more Velocity templates
|
||||||
for the email content that your application needs. Find below the Velocity
|
for the email content that your application needs. Find below the Velocity
|
||||||
template that this example will be using... as you can see it is HTML-based,
|
template that this example will be using. As you can see it is HTML-based,
|
||||||
and since it is plain text it can be created using your favorite HTML editor
|
and since it is plain text it can be created using your favorite HTML
|
||||||
without recourse to having to know Java.</para>
|
or text editor.</para>
|
||||||
<programlisting language="xml"><lineannotation># in the <literal>com/foo/package</literal></lineannotation><![CDATA[
|
<programlisting language="xml"><lineannotation># in the <literal>com/foo/package</literal></lineannotation><![CDATA[
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -108,9 +108,9 @@ public class Person {
|
||||||
<classname>Customer</classname> objects, and so a distinct
|
<classname>Customer</classname> objects, and so a distinct
|
||||||
<classname>AddressValidator</classname> has been implemented. If you want your
|
<classname>AddressValidator</classname> has been implemented. If you want your
|
||||||
<classname>CustomerValidator</classname> to reuse the logic contained within the
|
<classname>CustomerValidator</classname> to reuse the logic contained within the
|
||||||
<classname>AddressValidator</classname> class without recourse to copy-n-paste you can
|
<classname>AddressValidator</classname> class without resorting to copy-and-paste,
|
||||||
dependency-inject or instantiate an <classname>AddressValidator</classname> within your
|
you can dependency-inject or instantiate an <classname>AddressValidator</classname>
|
||||||
<classname>CustomerValidator</classname>, and use it like so:</para>
|
within your <classname>CustomerValidator</classname>, and use it like so:</para>
|
||||||
<programlisting language="java"><![CDATA[public class CustomerValidator implements Validator {
|
<programlisting language="java"><![CDATA[public class CustomerValidator implements Validator {
|
||||||
|
|
||||||
private final Validator addressValidator;
|
private final Validator addressValidator;
|
||||||
|
|
@ -1515,4 +1515,4 @@ public class MyController {
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue