incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r930234 - /incubator/bval/sandbox/guice-integration/src/main/java/org/apache/bval/extentions/guice/ValidationModule.java
Date Fri, 02 Apr 2010 10:58:41 GMT
Author: simonetripodi
Date: Fri Apr  2 10:58:41 2010
New Revision: 930234

URL: http://svn.apache.org/viewvc?rev=930234&view=rev
Log:
added Validator-ValidatorProvider binding

Modified:
    incubator/bval/sandbox/guice-integration/src/main/java/org/apache/bval/extentions/guice/ValidationModule.java

Modified: incubator/bval/sandbox/guice-integration/src/main/java/org/apache/bval/extentions/guice/ValidationModule.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/guice-integration/src/main/java/org/apache/bval/extentions/guice/ValidationModule.java?rev=930234&r1=930233&r2=930234&view=diff
==============================================================================
--- incubator/bval/sandbox/guice-integration/src/main/java/org/apache/bval/extentions/guice/ValidationModule.java
(original)
+++ incubator/bval/sandbox/guice-integration/src/main/java/org/apache/bval/extentions/guice/ValidationModule.java
Fri Apr  2 10:58:41 2010
@@ -19,6 +19,7 @@ package org.apache.bval.extentions.guice
 import javax.validation.ConstraintValidatorFactory;
 import javax.validation.MessageInterpolator;
 import javax.validation.TraversableResolver;
+import javax.validation.Validator;
 import javax.validation.ValidatorFactory;
 import javax.validation.spi.ConfigurationState;
 
@@ -121,6 +122,7 @@ public final class ValidationModule exte
         this.bind(ConstraintValidatorFactory.class).to(GuiceAwareConstraintValidatorFactory.class).asEagerSingleton();
         this.bind(ConfigurationState.class).toProvider(ConfigurationStateProvider.class).asEagerSingleton();
         this.bind(ValidatorFactory.class).toProvider(ValidatorFactoryProvider.class).asEagerSingleton();
+        this.bind(Validator.class).toProvider(ValidatorProvider.class).asEagerSingleton();
     }
 
 }



Mime
View raw message