bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1613818 - /bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java
Date Sun, 27 Jul 2014 17:23:56 GMT
Author: rmannibucau
Date: Sun Jul 27 17:23:55 2014
New Revision: 1613818

URL: http://svn.apache.org/r1613818
Log:
allowing to skip adding Validator/ValidatorFactory beans

Modified:
    bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java

Modified: bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java
URL: http://svn.apache.org/viewvc/bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java?rev=1613818&r1=1613817&r2=1613818&view=diff
==============================================================================
--- bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java (original)
+++ bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java Sun
Jul 27 17:23:55 2014
@@ -58,8 +58,8 @@ public class BValExtension implements Ex
     private static BValExtension bmpSingleton = null;
     private volatile Map<ClassLoader, BeanManagerInfo> bmInfos = new ConcurrentHashMap<ClassLoader,
BeanManagerInfo>();
 
-    private boolean validatorFound = false;
-    private boolean validatorFactoryFound = false;
+    private boolean validatorFound = Boolean.getBoolean("bval.in-container");
+    private boolean validatorFactoryFound = Boolean.getBoolean("bval.in-container");
 
     private final Configuration<?> config;
 



Mime
View raw message