geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r792549 [2/2] - in /geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation: ./ bootstrap/ constraints/ spi/
Date Thu, 09 Jul 2009 13:25:03 GMT
Modified: geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/spi/ConfigurationState.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/spi/ConfigurationState.java?rev=792549&r1=792548&r2=792549&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/spi/ConfigurationState.java
(original)
+++ geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/spi/ConfigurationState.java
Thu Jul  9 13:25:02 2009
@@ -17,9 +17,8 @@
 package javax.validation.spi;
 
 import java.io.InputStream;
-import java.util.Map;
 import java.util.Set;
-
+import java.util.Map;
 import javax.validation.ConstraintValidatorFactory;
 import javax.validation.MessageInterpolator;
 import javax.validation.TraversableResolver;
@@ -30,24 +29,24 @@
 public interface ConfigurationState {
 
     /**
-     * @return ConstraintValidatorFactory
+     * @return boolean
      */
-    ConstraintValidatorFactory getConstraintValidatorFactory();
+    boolean isIgnoreXmlConfiguration();
 
     /**
-     * @return Set<InputStream>
+     * @return MessageInterpolator
      */
-    Set<InputStream> getMappingStreams();
+    MessageInterpolator getMessageInterpolator();
 
     /**
-     * @return MessageInterpolator
+     * @return Set<InputStream>
      */
-    MessageInterpolator getMessageInterpolator();
+    Set<InputStream> getMappingStreams();
 
     /**
-     * @return Map
+     * @return ConstraintValidatorFactory
      */
-    Map<String, String> getProperties();
+    ConstraintValidatorFactory getConstraintValidatorFactory();
 
     /**
      * @return TraversableResolver
@@ -55,7 +54,7 @@
     TraversableResolver getTraversableResolver();
 
     /**
-     * @return boolean
+     * @return Map<String, String>
      */
-    boolean isIgnoreXmlConfiguration();
+    Map<String, String> getProperties();
 }

Modified: geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/spi/ValidationProvider.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/spi/ValidationProvider.java?rev=792549&r1=792548&r2=792549&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/spi/ValidationProvider.java
(original)
+++ geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/spi/ValidationProvider.java
Thu Jul  9 13:25:02 2009
@@ -17,38 +17,37 @@
 package javax.validation.spi;
 
 import javax.validation.Configuration;
-import javax.validation.ValidationException;
 import javax.validation.ValidatorFactory;
 
 /**
  * @version $Rev$ $Date$
  */
 public interface ValidationProvider {
-
     /**
-     * @param configurationState
-     * @return ValidatorFactory
-     * @throws ValidationException
+     * @param configurationClass
+     * @return boolean
      */
-    ValidatorFactory buildValidatorFactory(ConfigurationState configurationState);
+    boolean isSuitable(Class<? extends Configuration<?>> configurationClass);
 
     /**
+     * @param configurationClass
      * @param state
-     * @return Configuration
+     * @return Configuration<T>
      */
-    Configuration<?> createGenericConfiguration(BootstrapState state);
+    <T extends Configuration<T>> T createSpecializedConfiguration(
+        BootstrapState state,
+        Class<T> configurationClass);
 
     /**
      * @param state
-     * @param configurationClass
-     * @return Class<T>
+     * @return Configuration<?>
      */
-    <T extends Configuration<T>> T createSpecializedConfiguration(
-        BootstrapState state, Class<T> configurationClass);
+    Configuration<?> createGenericConfiguration(BootstrapState state);
 
     /**
-     * @param configurationClass
-     * @return boolean
+     * @param configurationState
+     * @return ValidatorFactory
+     * @throws javax.validation.ValidationException
      */
-    boolean isSuitable(Class<? extends Configuration<?>> configurationClass);
+    ValidatorFactory buildValidatorFactory(ConfigurationState configurationState);
 }



Mime
View raw message