deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r924867 - in /websites/staging/deltaspike/trunk/content: ./ documentation/bean-validation.html
Date Mon, 06 Oct 2014 21:33:38 GMT
Author: buildbot
Date: Mon Oct  6 21:33:37 2014
New Revision: 924867

Log:
Staging update by buildbot for deltaspike

Modified:
    websites/staging/deltaspike/trunk/content/   (props changed)
    websites/staging/deltaspike/trunk/content/documentation/bean-validation.html

Propchange: websites/staging/deltaspike/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Oct  6 21:33:37 2014
@@ -1 +1 @@
-1628021
+1629767

Modified: websites/staging/deltaspike/trunk/content/documentation/bean-validation.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/documentation/bean-validation.html (original)
+++ websites/staging/deltaspike/trunk/content/documentation/bean-validation.html Mon Oct 
6 21:33:37 2014
@@ -185,16 +185,15 @@ body {
 <div class="sectionbody">
 <div class="paragraph">
 <p>The main feature of the Bean Validation module is to provide CDI
-integration in to `ConstraintValidator`s. This allows you to inject CDI
+integration in to <code>ConstraintValidator</code>\`s. This allows you to inject
CDI
 objects, EJBs etc in to your validators.</p>
 </div>
 <div class="sect2">
 <h3 id="_scoping">Scoping</h3>
 <div class="paragraph">
-<p><code>ConstraintValidator`s will inherit whatever scope as defined in the
-bean class. Inherently, a `ConstraintValidator</code> may be invoked by
-multiple threads so please keep that in mind when using them. You should
-consider using at least <code>RequestScoped</code> validators.</p>
+<p><code>ConstraintValidator</code>`s will inherit whatever scope as defined
in the bean class.
+Inherently, a `ConstraintValidator` may be invoked by multiple threads so please keep that
in mind when using them.
+You should consider using at least <code>RequestScoped</code> validators.</p>
 </div>
 </div>
 <div class="sect2">
@@ -205,24 +204,24 @@ simply need to override the factory, eit
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="CodeRay highlight"><code data-lang="java">Validation.byDefaultProvider().configure().constraintValidatorFactory(<span
class="keyword">new</span> CDIAwareConstraintValidatorFactory()).buildValidatorFactory()
--------------------------------------------------------------------------------------------------
-
-Or in XML:
-
-[source,xml]
-------------------------------------------------------------------------------------------------------------------------
-:::xml
-&lt;validation-config xmlns=<span class="string"><span class="delimiter">&quot;</span><span
class="content">http://jboss.org/xml/ns/javax/validation/configuration</span><span
class="delimiter">&quot;</span></span>
- xmlns:xsi=<span class="string"><span class="delimiter">&quot;</span><span
class="content">http://www.w3.org/2001/XMLSchema-instance</span><span class="delimiter">&quot;</span></span>
- xsi:schemaLocation=<span class="string"><span class="delimiter">&quot;</span><span
class="content">http://jboss.org/xml/ns/javax/validation/configuration</span><span
class="delimiter">&quot;</span></span>&gt;
-    &lt;constraint-validator-factory&gt;org.apache.deltaspike.beanvalidation.impl.CDIAwareConstraintValidatorFactory&lt;/constraint-validator-factory&gt;
-&lt;/validation-config&gt;
-------------------------------------------------------------------------------------------------------------------------
-
-And then you can simply build your <span class="error">`</span>ConstraintValidator<span
class="error">`</span>s based on CDI
-programming rules.</code></pre>
+<pre class="CodeRay highlight"><code data-lang="java">Validation.byDefaultProvider().configure().constraintValidatorFactory(<span
class="keyword">new</span> CDIAwareConstraintValidatorFactory()).buildValidatorFactory()</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>Or in XML:</p>
 </div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="xml"><span class="tag">&lt;validation-config</span>
<span class="attribute-name">xmlns</span>=<span class="string"><span
class="delimiter">&quot;</span><span class="content">http://jboss.org/xml/ns/javax/validation/configuration</span><span
class="delimiter">&quot;</span></span>
+ <span class="attribute-name">xmlns:xsi</span>=<span class="string"><span
class="delimiter">&quot;</span><span class="content">http://www.w3.org/2001/XMLSchema-instance</span><span
class="delimiter">&quot;</span></span>
+ <span class="attribute-name">xsi:schemaLocation</span>=<span class="string"><span
class="delimiter">&quot;</span><span class="content">http://jboss.org/xml/ns/javax/validation/configuration</span><span
class="delimiter">&quot;</span></span><span class="tag">&gt;</span>
+    <span class="tag">&lt;constraint-validator-factory&gt;</span>org.apache.deltaspike.beanvalidation.impl.CDIAwareConstraintValidatorFactory<span
class="tag">&lt;/constraint-validator-factory&gt;</span>
+<span class="tag">&lt;/validation-config&gt;</span></code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>And then you can simply build your `ConstraintValidator`s based on CDI
+programming rules.</p>
 </div>
 </div>
 </div>



Mime
View raw message