[jboss-cvs] JBossAS SVN: r109698 - trunk/varia/src/resources/beanvalidation.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Dec 3 06:15:15 EST 2010
Author: epbernard
Date: 2010-12-03 06:15:14 -0500 (Fri, 03 Dec 2010)
New Revision: 109698
Modified:
trunk/varia/src/resources/beanvalidation/bv-core-jboss-beans.xml
Log:
Bean Validation: add comments explaining the behavior necessary for ValidatorFactoryFactory
Modified: trunk/varia/src/resources/beanvalidation/bv-core-jboss-beans.xml
===================================================================
--- trunk/varia/src/resources/beanvalidation/bv-core-jboss-beans.xml 2010-12-03 11:08:50 UTC (rev 109697)
+++ trunk/varia/src/resources/beanvalidation/bv-core-jboss-beans.xml 2010-12-03 11:15:14 UTC (rev 109698)
@@ -5,7 +5,14 @@
-->
<deployment xmlns="urn:jboss:bean-deployer:2.0">
- <!-- ValidatorFactory factory -->
+ <!-- ValidatorFactory factory
+ We currently use org.hibernate.validator.util.LazyValidatorFactory
+ Two contracts are important:
+ - it lazily creates the ValidatorFactory when getValidator() is first requested
+ - it enforces that the default validation provider is Hibernate Validator
+ The latter is necessary to ensure that by default AS uses Hibernate Validator. This will reduce confusion
+ for support and for people using Bean Validation
+ -->
<beanfactory name="ValidatorFactoryFactory" class="org.hibernate.validator.util.LazyValidatorFactory"/>
<!-- JEE DU filter -->
More information about the jboss-cvs-commits
mailing list