Author: buildbot
Date: Fri Aug 29 17:14:50 2014
New Revision: 920723
Log:
Staging update by buildbot for deltaspike
Modified:
websites/staging/deltaspike/trunk/content/ (props changed)
websites/staging/deltaspike/trunk/content/bean-validation.html
Propchange: websites/staging/deltaspike/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Aug 29 17:14:50 2014
@@ -1 +1 @@
-1621343
+1621345
Modified: websites/staging/deltaspike/trunk/content/bean-validation.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/bean-validation.html (original)
+++ websites/staging/deltaspike/trunk/content/bean-validation.html Fri Aug 29
17:14:50 2014
@@ -90,7 +90,7 @@
<h1 id="introduction">Introduction</h1>
<p>The main feature of the Bean Validation module is to provide CDI
integration in to <code>ConstraintValidator</code>s. This allows you to inject
CDI objects, EJBs etc in to your validators.</p>
<h2 id="scoping">Scoping</h2>
-<p><code>ConstraintValidator</code>s will inherit whatever scope as defined in
the bean class. Inherently, a <code>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 <code>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>
<h2 id="code-requirements">Code Requirements</h2>
<p>There are no compile dependencies to use the Bean Validation module. You
simply need to override the factory, either in Java:</p>
<div class="codehilite"><pre><span class="n">Validation</span><span
class="o">.</span><span class="na">byDefaultProvider</span><span
class="o">().</span><span class="na">configure</span><span
class="o">().</span><span class="na">constraintValidatorFactory</span><span
class="o">(</span><span class="k">new</span> <span
class="n">CDIAwareConstraintValidatorFactory</span><span
class="o">()).</span><span class="na">buildValidatorFactory</span><span
class="o">()</span>