incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r996738 - /incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java
Date Tue, 14 Sep 2010 02:39:07 GMT
Author: mbenson
Date: Tue Sep 14 02:39:07 2010
New Revision: 996738

URL: http://svn.apache.org/viewvc?rev=996738&view=rev
Log:
extensibility

Modified:
    incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java

Modified: incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java?rev=996738&r1=996737&r2=996738&view=diff
==============================================================================
--- incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java
(original)
+++ incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java
Tue Sep 14 02:39:07 2010
@@ -60,12 +60,16 @@ public class ClassValidator implements C
      * {@link ApacheFactoryContext} used
      */
     protected final ApacheFactoryContext factoryContext;
+
     /**
      * {@link GroupsComputer} used
      */
     protected final GroupsComputer groupsComputer = new GroupsComputer();
 
-    private final NestedPathNavigator nestedPathNavigator = new NestedPathNavigator();
+    /**
+     * {@link NestedPathNavigator} used
+     */
+    protected final NestedPathNavigator nestedPathNavigator = new NestedPathNavigator();
 
     /**
      * Create a new ClassValidator instance.
@@ -619,14 +623,14 @@ public class ClassValidator implements C
         final Runnable helper;
         if (context.getMetaProperty() == null) {
             helper = new Runnable() {
-                
+
                 public void run() {
                     ValidationHelper.validateBean(context);
                 }
             };
         } else {
             helper = new Runnable() {
-                
+
                 public void run() {
                     ValidationHelper.validateProperty(context);
                 }
@@ -657,7 +661,7 @@ public class ClassValidator implements C
      * @return {@link GroupValidationContext} instance
      */
     protected <T> GroupValidationContext<T> createContext(MetaBean metaBean,
T object, Class<T> objectClass,
-        Class<?>[] groups) {
+        Class<?>... groups) {
         ConstraintValidationListener<T> listener = new ConstraintValidationListener<T>(object,
objectClass);
         GroupValidationContextImpl<T> context =
             new GroupValidationContextImpl<T>(listener, this.factoryContext.getMessageInterpolator(),



Mime
View raw message