incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romanst...@apache.org
Subject svn commit: r928628 - in /incubator/bval/trunk/bval-jsr303/src: main/java/org/apache/bval/jsr303/ main/java/org/apache/bval/jsr303/extensions/ main/java/org/apache/bval/jsr303/xml/ main/resources/META-INF/services/ test/java/org/apache/bval/constraints...
Date Mon, 29 Mar 2010 08:05:58 GMT
Author: romanstumm
Date: Mon Mar 29 08:05:57 2010
New Revision: 928628

URL: http://svn.apache.org/viewvc?rev=928628&view=rev
Log:
fixed all tests, renamed some classes from Agimatec to Apache

Added:
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheFactoryContext.java   (contents, props changed)
      - copied, changed from r928623, incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecFactoryContext.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidationProvider.java   (contents, props changed)
      - copied, changed from r928623, incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidationProvider.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorConfiguration.java   (contents, props changed)
      - copied, changed from r928623, incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidatorConfiguration.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorFactory.java   (contents, props changed)
      - copied, changed from r928623, incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidatorFactory.java
Removed:
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecFactoryContext.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidationProvider.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidatorConfiguration.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidatorFactory.java
Modified:
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/BeanDescriptorImpl.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConfigurationImpl.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintDefaults.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/Jsr303MetaBeanFactory.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodBeanDescriptorImpl.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorImpl.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorMetaBeanFactory.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/xml/ValidationMappingParser.java
    incubator/bval/trunk/bval-jsr303/src/main/resources/META-INF/services/javax.validation.spi.ValidationProvider
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/EmailValidatorTest.java
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/BootstrapTest.java
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/DefaultMessageInterpolatorTest.java
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/FooTest.java
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/Jsr303Test.java
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/PayloadTest.java
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/ValidationTest.java
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/extensions/MethodValidatorImplTest.java
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/CollectionValidationTest.java
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GroupSequenceTest.java
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GroupValidationTest.java
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/implicit/ImplicitGroupingTest.java
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/inheritance/GroupInheritanceTest.java
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/redefining/RedefiningDefaultGroupTest.java
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/xml/ValidationParserTest.java
    incubator/bval/trunk/bval-jsr303/src/test/resources/sample-validation.xml

Copied: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheFactoryContext.java (from r928623, incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecFactoryContext.java)
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheFactoryContext.java?p2=incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheFactoryContext.java&p1=incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecFactoryContext.java&r1=928623&r2=928628&rev=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecFactoryContext.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheFactoryContext.java Mon Mar 29 08:05:57 2010
@@ -18,8 +18,6 @@
  */
 package org.apache.bval.jsr303;
 
-import org.apache.bval.*;
-
 import javax.validation.*;
 
 import org.apache.bval.IntrospectorMetaBeanFactory;
@@ -40,26 +38,26 @@ import java.util.List;
  * Time: 16:35:25 <br/>
  * Copyright: Agimatec GmbH
  */
-public class AgimatecFactoryContext implements ValidatorContext {
-    private final AgimatecValidatorFactory factory;
+public class ApacheFactoryContext implements ValidatorContext {
+    private final ApacheValidatorFactory factory;
     private final MetaBeanFinder metaBeanFinder;
 
     private MessageInterpolator messageInterpolator;
     private TraversableResolver traversableResolver;
     private ConstraintValidatorFactory constraintValidatorFactory;
 
-    public AgimatecFactoryContext(AgimatecValidatorFactory factory) {
+    public ApacheFactoryContext(ApacheValidatorFactory factory) {
         this.factory = factory;
         this.metaBeanFinder = buildMetaBeanManager();
     }
 
-    protected AgimatecFactoryContext(AgimatecValidatorFactory factory,
+    protected ApacheFactoryContext(ApacheValidatorFactory factory,
                                      MetaBeanFinder metaBeanFinder) {
         this.factory = factory;
         this.metaBeanFinder = metaBeanFinder;
     }
 
-    public AgimatecValidatorFactory getFactory() {
+  public ApacheValidatorFactory getFactory() {
         return factory;
     }
 
@@ -91,7 +89,7 @@ public class AgimatecFactoryContext impl
     public Validator getValidator() {
         ClassValidator validator = new ClassValidator(this);
         if (Boolean.getBoolean(factory.getProperties().get(
-              AgimatecValidatorConfiguration.Properties.TREAT_MAPS_LIKE_BEANS))) {
+              ApacheValidatorConfiguration.Properties.TREAT_MAPS_LIKE_BEANS))) {
             validator.setTreatMapsLikeBeans(true);
         }
         return validator;
@@ -117,13 +115,13 @@ public class AgimatecFactoryContext impl
         // (because ignore-annotations settings in xml)
         List<MetaBeanFactory> builders = new ArrayList(3);
         if (Boolean.parseBoolean(factory.getProperties().get(
-              AgimatecValidatorConfiguration.Properties.ENABLE_INTROSPECTOR))) {
+              ApacheValidatorConfiguration.Properties.ENABLE_INTROSPECTOR))) {
             builders.add(new IntrospectorMetaBeanFactory());
         }
         builders.add(new Jsr303MetaBeanFactory(this));
 
         if (Boolean.parseBoolean(factory.getProperties().get(
-              AgimatecValidatorConfiguration.Properties.ENABLE_METABEANS_XML))) {
+              ApacheValidatorConfiguration.Properties.ENABLE_METABEANS_XML))) {
             builders.add(new XMLMetaBeanFactory());
         }
         return new MetaBeanManager(

Propchange: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheFactoryContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheFactoryContext.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheFactoryContext.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Copied: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidationProvider.java (from r928623, incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidationProvider.java)
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidationProvider.java?p2=incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidationProvider.java&p1=incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidationProvider.java&r1=928623&r2=928628&rev=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidationProvider.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidationProvider.java Mon Mar 29 08:05:57 2010
@@ -32,12 +32,11 @@ import javax.validation.spi.ValidationPr
  * User: roman.stumm <br/>
  * Date: 29.10.2008 <br/>
  * Time: 14:45:41 <br/>
- * Copyright: Agimatec GmbH
  */
-public class AgimatecValidationProvider
-      implements ValidationProvider<AgimatecValidatorConfiguration> {
+public class ApacheValidationProvider
+      implements ValidationProvider<ApacheValidatorConfiguration> {
     public boolean isSuitable(Class<? extends Configuration<?>> builderClass) {
-        return AgimatecValidatorConfiguration.class == builderClass;
+        return ApacheValidatorConfiguration.class == builderClass;
     }
 
     public ConfigurationImpl createSpecializedConfiguration(BootstrapState state) {
@@ -52,9 +51,9 @@ public class AgimatecValidationProvider
      * @throws javax.validation.ValidationException
      *          if the ValidatorFactory cannot be built
      */
-    public AgimatecValidatorFactory buildValidatorFactory(ConfigurationState configuration) {
+    public ApacheValidatorFactory buildValidatorFactory(ConfigurationState configuration) {
         try {
-            AgimatecValidatorFactory factory = new AgimatecValidatorFactory();
+            ApacheValidatorFactory factory = new ApacheValidatorFactory();
             factory.configure(configuration);
             return factory;
         } catch (RuntimeException ex) {

Propchange: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidationProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidationProvider.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidationProvider.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Copied: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorConfiguration.java (from r928623, incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidatorConfiguration.java)
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorConfiguration.java?p2=incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorConfiguration.java&p1=incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidatorConfiguration.java&r1=928623&r2=928628&rev=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidatorConfiguration.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorConfiguration.java Mon Mar 29 08:05:57 2010
@@ -28,8 +28,8 @@ import javax.validation.Configuration;
  * Time: 16:16:45 <br/>
  * Copyright: Agimatec GmbH
  */
-public interface AgimatecValidatorConfiguration
-      extends Configuration<AgimatecValidatorConfiguration> {
+public interface ApacheValidatorConfiguration
+      extends Configuration<ApacheValidatorConfiguration> {
 
     /**
      * proprietary property keys for {@link ConfigurationImpl}  
@@ -39,7 +39,7 @@ public interface AgimatecValidatorConfig
          * the location where to look for the validation.xml file.
          * default: "META-INF/validation.xml"
          */
-        String VALIDATION_XML_PATH = "agimatec.validation-xml-path";
+        String VALIDATION_XML_PATH = "apache.bval.validation-xml-path";
 
         /**
          * true/false. use Introspector (java beans) metadata additionally
@@ -49,19 +49,19 @@ public interface AgimatecValidatorConfig
          * to create the meta data.<br>
          * default: false
          */
-        String ENABLE_INTROSPECTOR = "agimatec.enable-introspector";
+        String ENABLE_INTROSPECTOR = "apache.bval.enable-introspector";
 
         /**
          * true/false. use agimatec metaBeans xml format additionally to
          * build metadata with JSR303.
          * default: false
          */
-        String ENABLE_METABEANS_XML = "agimatec.enable-metabeans-xml";
+        String ENABLE_METABEANS_XML = "apache.bval.enable-metabeans-xml";
 
         /**
          * BeanValidator.treatMapsLikeBeans.
          * default: false 
          */
-         String TREAT_MAPS_LIKE_BEANS = "agimatec.treat-maps-like-beans";
+         String TREAT_MAPS_LIKE_BEANS = "apache.bval.treat-maps-like-beans";
     }
 }

Propchange: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorConfiguration.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorConfiguration.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorConfiguration.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Copied: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorFactory.java (from r928623, incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidatorFactory.java)
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorFactory.java?p2=incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorFactory.java&p1=incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidatorFactory.java&r1=928623&r2=928628&rev=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AgimatecValidatorFactory.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorFactory.java Mon Mar 29 08:05:57 2010
@@ -40,8 +40,8 @@ import java.util.*;
  * Time: 17:06:20 <br/>
  * Copyright: Agimatec GmbH
  */
-public class AgimatecValidatorFactory implements ValidatorFactory, Cloneable {
-    private static AgimatecValidatorFactory DEFAULT_FACTORY;
+public class ApacheValidatorFactory implements ValidatorFactory, Cloneable {
+    private static ApacheValidatorFactory DEFAULT_FACTORY;
     private static final ConstraintDefaults defaultConstraints = new ConstraintDefaults();
 
     private MessageInterpolator messageResolver;
@@ -59,19 +59,19 @@ public class AgimatecValidatorFactory im
     private final Map<Class<?>, List<AccessStrategy>> validAccesses;
     private final Map<Class<?>, List<MetaConstraint<?, ? extends Annotation>>> constraintMap;
 
-    /** convenience to retrieve a default global AgimatecValidatorFactory */
-    public static AgimatecValidatorFactory getDefault() {
+  /** convenience to retrieve a default global ApacheValidatorFactory */
+    public static ApacheValidatorFactory getDefault() {
         if (DEFAULT_FACTORY == null) {
-            ProviderSpecificBootstrap<AgimatecValidatorConfiguration> provider =
-                  Validation.byProvider(AgimatecValidationProvider.class);
-            AgimatecValidatorConfiguration configuration = provider.configure();
-            DEFAULT_FACTORY = (AgimatecValidatorFactory) configuration
+            ProviderSpecificBootstrap<ApacheValidatorConfiguration> provider =
+                  Validation.byProvider(ApacheValidationProvider.class);
+            ApacheValidatorConfiguration configuration = provider.configure();
+            DEFAULT_FACTORY = (ApacheValidatorFactory) configuration
                   .buildValidatorFactory();
         }
         return DEFAULT_FACTORY;
     }
 
-    public AgimatecValidatorFactory() {
+    public ApacheValidatorFactory() {
         properties = new HashMap<String, String>();
         defaultSequences = new HashMap();
         validAccesses = new HashMap();
@@ -105,15 +105,15 @@ public class AgimatecValidatorFactory im
     }
 
     /** @return the validator factory's context */
-    public AgimatecFactoryContext usingContext() {
-        return new AgimatecFactoryContext(this);
+    public ApacheFactoryContext usingContext() {
+        return new ApacheFactoryContext(this);
     }
 
     @SuppressWarnings({"CloneDoesntDeclareCloneNotSupportedException"})
     @Override
-    public synchronized AgimatecValidatorFactory clone() {
+    public synchronized ApacheValidatorFactory clone() {
         try {
-            return (AgimatecValidatorFactory) super.clone();
+            return (ApacheValidatorFactory) super.clone();
         } catch (CloneNotSupportedException e) {
             throw new InternalError(); // VM bug.
         }

Propchange: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorFactory.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ApacheValidatorFactory.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/BeanDescriptorImpl.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/BeanDescriptorImpl.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/BeanDescriptorImpl.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/BeanDescriptorImpl.java Mon Mar 29 08:05:57 2010
@@ -38,9 +38,9 @@ import java.util.Set;
  * Copyright: Agimatec GmbH
  */
 public class BeanDescriptorImpl extends ElementDescriptorImpl implements BeanDescriptor {
-    protected final AgimatecFactoryContext factoryContext;
+    protected final ApacheFactoryContext factoryContext;
 
-    protected BeanDescriptorImpl(AgimatecFactoryContext factoryContext, MetaBean metaBean,
+    protected BeanDescriptorImpl(ApacheFactoryContext factoryContext, MetaBean metaBean,
                                  Validation[] validations) {
         super(metaBean, validations);
         this.factoryContext = factoryContext;

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java Mon Mar 29 08:05:57 2010
@@ -48,16 +48,16 @@ import java.util.Set;
  * Copyright: Agimatec GmbH 2008
  */
 public class ClassValidator extends BeanValidator implements Validator {
-    protected final AgimatecFactoryContext factoryContext;
+    protected final ApacheFactoryContext factoryContext;
     protected final GroupsComputer groupsComputer = new GroupsComputer();
 
-    public ClassValidator(AgimatecFactoryContext factoryContext) {
+    public ClassValidator(ApacheFactoryContext factoryContext) {
         super(factoryContext.getMetaBeanFinder());
         this.factoryContext = factoryContext;
     }
 
     /** @deprecated provided for backward compatibility */
-    public ClassValidator(AgimatecValidatorFactory factory) {
+    public ClassValidator(ApacheValidatorFactory factory) {
         this(factory.usingContext());
     }
 
@@ -323,13 +323,13 @@ public class ClassValidator extends Bean
         if (type.isAssignableFrom(getClass())) {
             return (T) this;
         } else if (!type.isInterface()) {
-            return SecureActions.newInstance(type, new Class[]{AgimatecFactoryContext.class},
+            return SecureActions.newInstance(type, new Class[]{ApacheFactoryContext.class},
                   new Object[]{factoryContext});
         } else {
             try {
                 Class<T> cls = ClassUtils.getClass(type.getName() + "Impl");
                 return SecureActions.newInstance(cls,
-                      new Class[]{AgimatecFactoryContext.class}, new Object[]{factoryContext});
+                      new Class[]{ApacheFactoryContext.class}, new Object[]{factoryContext});
             } catch (ClassNotFoundException e) {
                 throw new ValidationException("Type " + type + " not supported");
             }

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConfigurationImpl.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConfigurationImpl.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConfigurationImpl.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConfigurationImpl.java Mon Mar 29 08:05:57 2010
@@ -41,7 +41,7 @@ import java.util.*;
  * Time: 14:47:44 <br/>
  * Copyright: Agimatec GmbH
  */
-public class ConfigurationImpl implements AgimatecValidatorConfiguration, ConfigurationState {
+public class ConfigurationImpl implements ApacheValidatorConfiguration, ConfigurationState {
     private static final Log log = LogFactory.getLog(ConfigurationImpl.class);
     
     protected final ValidationProvider provider;
@@ -84,7 +84,7 @@ public class ConfigurationImpl implement
         }
     }
 
-    public AgimatecValidatorConfiguration traversableResolver(TraversableResolver resolver) {
+    public ApacheValidatorConfiguration traversableResolver(TraversableResolver resolver) {
         traversableResolver = resolver;
         this.prepared = false;
         return this;
@@ -96,7 +96,7 @@ public class ConfigurationImpl implement
      *
      * @return this
      */
-    public AgimatecValidatorConfiguration ignoreXmlConfiguration() {
+    public ApacheValidatorConfiguration ignoreXmlConfiguration() {
         ignoreXmlConfiguration = true;
 //        this.prepared = false;
         return this;
@@ -121,7 +121,7 @@ public class ConfigurationImpl implement
      *
      * @return this
      */
-    public AgimatecValidatorConfiguration addMapping(InputStream stream) {
+    public ApacheValidatorConfiguration addMapping(InputStream stream) {
         mappingStreams.add(stream);
         return this;
     }
@@ -133,7 +133,7 @@ public class ConfigurationImpl implement
      *
      * @return this
      */
-    public AgimatecValidatorConfiguration addProperty(String name, String value) {
+    public ApacheValidatorConfiguration addProperty(String name, String value) {
         properties.put(name, value);
         return this;
     }

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintDefaults.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintDefaults.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintDefaults.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintDefaults.java Mon Mar 29 08:05:57 2010
@@ -39,7 +39,7 @@ import java.util.*;
 public class ConstraintDefaults {
     private static final Log log = LogFactory.getLog(ConstraintDefaults.class);
     private static final String DEFAULT_CONSTAINTS =
-          "com/agimatec/validation/jsr303/DefaultConstraints.properties";
+          "org/apache/bval/jsr303/DefaultConstraints.properties";
     protected Map<String, Class[]> defaultConstraints;
 
     public ConstraintDefaults() {

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/Jsr303MetaBeanFactory.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/Jsr303MetaBeanFactory.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/Jsr303MetaBeanFactory.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/Jsr303MetaBeanFactory.java Mon Mar 29 08:05:57 2010
@@ -56,9 +56,9 @@ import java.util.Set;
 public class Jsr303MetaBeanFactory implements MetaBeanFactory {
     protected static final Log log = LogFactory.getLog(Jsr303MetaBeanFactory.class);
     protected static final String ANNOTATION_VALUE = "value";
-    protected final AgimatecFactoryContext factoryContext;
+    protected final ApacheFactoryContext factoryContext;
 
-    public Jsr303MetaBeanFactory(AgimatecFactoryContext factoryContext) {
+    public Jsr303MetaBeanFactory(ApacheFactoryContext factoryContext) {
         this.factoryContext = factoryContext;
     }
 

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodBeanDescriptorImpl.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodBeanDescriptorImpl.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodBeanDescriptorImpl.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodBeanDescriptorImpl.java Mon Mar 29 08:05:57 2010
@@ -23,7 +23,7 @@ import java.util.HashSet;
 import java.util.Map;
 import java.util.Set;
 
-import org.apache.bval.jsr303.AgimatecFactoryContext;
+import org.apache.bval.jsr303.ApacheFactoryContext;
 import org.apache.bval.jsr303.BeanDescriptorImpl;
 import org.apache.bval.model.MetaBean;
 import org.apache.bval.model.Validation;
@@ -40,7 +40,7 @@ class MethodBeanDescriptorImpl extends B
     private Map<Method, MethodDescriptorImpl> methodConstraints;
     private Map<Constructor, ConstructorDescriptorImpl> constructorConstraints;
 
-    protected MethodBeanDescriptorImpl(AgimatecFactoryContext factoryContext,
+    protected MethodBeanDescriptorImpl(ApacheFactoryContext factoryContext,
                                        MetaBean metaBean, Validation[] validations) {
         super(factoryContext, metaBean, validations);
     }

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorImpl.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorImpl.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorImpl.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorImpl.java Mon Mar 29 08:05:57 2010
@@ -16,12 +16,10 @@
  */
 package org.apache.bval.jsr303.extensions;
 
-import org.apache.bval.jsr303.*;
-
 import javax.validation.ConstraintViolation;
 import javax.validation.metadata.ConstraintDescriptor;
 
-import org.apache.bval.jsr303.AgimatecFactoryContext;
+import org.apache.bval.jsr303.ApacheFactoryContext;
 import org.apache.bval.jsr303.BeanDescriptorImpl;
 import org.apache.bval.jsr303.ClassValidator;
 import org.apache.bval.jsr303.ConstraintValidation;
@@ -46,7 +44,7 @@ import java.util.Set;
  */
 class MethodValidatorImpl extends ClassValidator implements MethodValidator {
 
-    public MethodValidatorImpl(AgimatecFactoryContext factoryContext) {
+    public MethodValidatorImpl(ApacheFactoryContext factoryContext) {
         super(factoryContext);
     }
 

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorMetaBeanFactory.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorMetaBeanFactory.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorMetaBeanFactory.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorMetaBeanFactory.java Mon Mar 29 08:05:57 2010
@@ -21,7 +21,7 @@ import javax.validation.Constraint;
 import javax.validation.ConstraintValidator;
 import javax.validation.Valid;
 
-import org.apache.bval.jsr303.AgimatecFactoryContext;
+import org.apache.bval.jsr303.ApacheFactoryContext;
 import org.apache.bval.jsr303.AppendValidation;
 import org.apache.bval.jsr303.Jsr303MetaBeanFactory;
 import org.apache.bval.jsr303.util.SecureActions;
@@ -42,7 +42,7 @@ import java.util.List;
  * Copyright: Agimatec GmbH
  */
 public class MethodValidatorMetaBeanFactory extends Jsr303MetaBeanFactory {
-    public MethodValidatorMetaBeanFactory(AgimatecFactoryContext factoryContext) {
+    public MethodValidatorMetaBeanFactory(ApacheFactoryContext factoryContext) {
         super(factoryContext);
     }
 

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/xml/ValidationMappingParser.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/xml/ValidationMappingParser.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/xml/ValidationMappingParser.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/xml/ValidationMappingParser.java Mon Mar 29 08:05:57 2010
@@ -28,7 +28,7 @@ import javax.xml.bind.Unmarshaller;
 import javax.xml.transform.stream.StreamSource;
 import javax.xml.validation.Schema;
 
-import org.apache.bval.jsr303.AgimatecValidatorFactory;
+import org.apache.bval.jsr303.ApacheValidatorFactory;
 import org.apache.bval.jsr303.util.ConverterUtils;
 import org.apache.bval.jsr303.util.SecureActions;
 import org.apache.bval.util.FieldAccess;
@@ -54,9 +54,9 @@ public class ValidationMappingParser {
     private static final String[] RESERVED_PARAMS = {"message", "groups", "payload"};
 
     private final Set<Class> processedClasses;
-    private final AgimatecValidatorFactory factory;
+    private final ApacheValidatorFactory factory;
 
-    public ValidationMappingParser(AgimatecValidatorFactory factory) {
+    public ValidationMappingParser(ApacheValidatorFactory factory) {
         this.factory = factory;
         this.processedClasses = new HashSet<Class>();
     }

Modified: incubator/bval/trunk/bval-jsr303/src/main/resources/META-INF/services/javax.validation.spi.ValidationProvider
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/resources/META-INF/services/javax.validation.spi.ValidationProvider?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/resources/META-INF/services/javax.validation.spi.ValidationProvider (original)
+++ incubator/bval/trunk/bval-jsr303/src/main/resources/META-INF/services/javax.validation.spi.ValidationProvider Mon Mar 29 08:05:57 2010
@@ -1 +1 @@
-org.apache.bval.jsr303.AgimatecValidationProvider
\ No newline at end of file
+org.apache.bval.jsr303.ApacheValidationProvider
\ No newline at end of file

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/EmailValidatorTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/EmailValidatorTest.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/EmailValidatorTest.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/EmailValidatorTest.java Mon Mar 29 08:05:57 2010
@@ -25,7 +25,7 @@ import junit.framework.TestSuite;
 
 import javax.validation.Validator;
 
-import org.apache.bval.jsr303.AgimatecValidatorFactory;
+import org.apache.bval.jsr303.ApacheValidatorFactory;
 import org.apache.bval.jsr303.example.Customer;
 
 /**
@@ -41,7 +41,7 @@ public class EmailValidatorTest extends 
     }
 
     public void testEmail() {
-        Validator validator = AgimatecValidatorFactory.getDefault().getValidator();
+        Validator validator = ApacheValidatorFactory.getDefault().getValidator();
         Customer customer = new Customer();
         customer.setCustomerId("id-1");
         customer.setFirstName("Mary");

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/BootstrapTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/BootstrapTest.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/BootstrapTest.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/BootstrapTest.java Mon Mar 29 08:05:57 2010
@@ -50,23 +50,23 @@ import org.apache.bval.jsr303.example.Cu
  * Copyright: Agimatec GmbH
  */
 public class BootstrapTest extends TestCase {
-    public void testAgimatecBootstrap() {
+    public void testDirectBootstrap() {
         Validator validator =
-                AgimatecValidatorFactory.getDefault().getValidator();
+                ApacheValidatorFactory.getDefault().getValidator();
         Assert.assertNotNull(validator);
-        Assert.assertTrue(AgimatecValidatorFactory.getDefault() ==
-                AgimatecValidatorFactory.getDefault());
+        Assert.assertTrue(ApacheValidatorFactory.getDefault() ==
+                ApacheValidatorFactory.getDefault());
     }
 
     public void testEverydayBootstrap() {
-        AgimatecValidatorFactory factory =
-                (AgimatecValidatorFactory) Validation.buildDefaultValidatorFactory();
+        ApacheValidatorFactory factory =
+                (ApacheValidatorFactory) Validation.buildDefaultValidatorFactory();
         Validator validator = factory.getValidator();
         Assert.assertNotNull(validator);
 
         // each call to Validation.getValidationBuilder() returns a new builder with new state
-        AgimatecValidatorFactory factory2 =
-                (AgimatecValidatorFactory) Validation.buildDefaultValidatorFactory();
+        ApacheValidatorFactory factory2 =
+                (ApacheValidatorFactory) Validation.buildDefaultValidatorFactory();
         Assert.assertTrue(factory2 != factory);
         Assert.assertTrue(factory2.getMessageInterpolator() != factory.getMessageInterpolator());
 
@@ -77,7 +77,7 @@ public class BootstrapTest extends TestC
         // changing the builder allows to create different factories
         DefaultMessageInterpolator interpolator = new DefaultMessageInterpolator();
         builder.messageInterpolator(interpolator);
-        AgimatecValidatorFactory factory = (AgimatecValidatorFactory) builder.buildValidatorFactory();
+        ApacheValidatorFactory factory = (ApacheValidatorFactory) builder.buildValidatorFactory();
 
         // ALTERNATIVE:
         // you could do it without modifying the builder or reusing it,
@@ -128,13 +128,13 @@ public class BootstrapTest extends TestC
 
             public List<ValidationProvider<?>> getValidationProviders() {
                 List<ValidationProvider<?>> list = new ArrayList(1);
-                list.add(new AgimatecValidationProvider());
+                list.add(new ApacheValidationProvider());
                 return list;
             }
         };
 
-        AgimatecValidatorConfiguration builder = Validation
-                .byProvider(AgimatecValidationProvider.class)
+        ApacheValidatorConfiguration builder = Validation
+                .byProvider(ApacheValidationProvider.class)
                 .providerResolver(resolver)
                 .configure();
         assertDefaultBuilderAndFactory(builder);
@@ -145,7 +145,7 @@ public class BootstrapTest extends TestC
 
             public List<ValidationProvider<?>> getValidationProviders() {
                 List list = new ArrayList();
-                list.add(new AgimatecValidationProvider());
+                list.add(new ApacheValidationProvider());
                 return list;
             }
         };
@@ -163,7 +163,7 @@ public class BootstrapTest extends TestC
 
         ValidatorFactory factory = builder.buildValidatorFactory();
         Assert.assertNotNull(factory);
-        Assert.assertTrue(factory instanceof AgimatecValidatorFactory);
+        Assert.assertTrue(factory instanceof ApacheValidatorFactory);
     }
 
     public void testFailingCustomResolver() {
@@ -174,10 +174,10 @@ public class BootstrapTest extends TestC
             }
         };
 
-        ProviderSpecificBootstrap<AgimatecValidatorConfiguration> type =
-                Validation.byProvider(AgimatecValidationProvider.class);
+        ProviderSpecificBootstrap<ApacheValidatorConfiguration> type =
+                Validation.byProvider(ApacheValidationProvider.class);
 
-        final ProviderSpecificBootstrap<AgimatecValidatorConfiguration> specializedBuilderFactory =
+        final ProviderSpecificBootstrap<ApacheValidatorConfiguration> specializedBuilderFactory =
                 type.providerResolver(resolver);
 
         try {
@@ -188,7 +188,7 @@ public class BootstrapTest extends TestC
             Assert.assertTrue(
                     "Wrong error message",
                     e.getMessage().contains("provider") && 
-                    e.getMessage().contains("org.apache.bval.jsr303.AgimatecValidationProvider")
+                    e.getMessage().contains("org.apache.bval.jsr303.ApacheValidationProvider")
             );
         }
     }

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/DefaultMessageInterpolatorTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/DefaultMessageInterpolatorTest.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/DefaultMessageInterpolatorTest.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/DefaultMessageInterpolatorTest.java Mon Mar 29 08:05:57 2010
@@ -91,6 +91,6 @@ public class DefaultMessageInterpolatorT
 
 
     private Validator getValidator() {
-        return AgimatecValidatorFactory.getDefault().getValidator();
+        return ApacheValidatorFactory.getDefault().getValidator();
     }
 }

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/FooTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/FooTest.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/FooTest.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/FooTest.java Mon Mar 29 08:05:57 2010
@@ -61,7 +61,7 @@ public class FooTest extends TestCase {
     public void testValidation() {
         FooTest t = new FooTest();
 
-        Validator v = AgimatecValidatorFactory.getDefault().getValidator();
+        Validator v = ApacheValidatorFactory.getDefault().getValidator();
         Set<ConstraintViolation<FooTest>> errors = v.validate(t);
         System.out.println("got errors:");
         for (ConstraintViolation error : errors) {

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/Jsr303Test.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/Jsr303Test.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/Jsr303Test.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/Jsr303Test.java Mon Mar 29 08:05:57 2010
@@ -55,7 +55,7 @@ import org.apache.bval.jsr303.util.TestU
  */
 public class Jsr303Test extends TestCase {
 /*    static {
-        AgimatecValidatorFactory.getDefault().getMetaBeanManager()
+        ApacheValidatorFactory.getDefault().getMetaBeanManager()
                 .addResourceLoader("com/agimatec/validation/example/test-beanInfos.xml");
     }*/
 
@@ -224,6 +224,6 @@ public class Jsr303Test extends TestCase
 
     private Validator getValidator() {
 //        return Validation.buildDefaultValidatorFactory().getValidator();
-        return AgimatecValidatorFactory.getDefault().getValidator();
+        return ApacheValidatorFactory.getDefault().getValidator();
     }
 }

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/PayloadTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/PayloadTest.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/PayloadTest.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/PayloadTest.java Mon Mar 29 08:05:57 2010
@@ -42,7 +42,7 @@ public class PayloadTest extends TestCas
     private Validator validator;
 
     protected void setUp() {
-        validator = AgimatecValidatorFactory.getDefault().getValidator();
+        validator = ApacheValidatorFactory.getDefault().getValidator();
     }
 
     static class Severity {

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/ValidationTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/ValidationTest.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/ValidationTest.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/ValidationTest.java Mon Mar 29 08:05:57 2010
@@ -228,7 +228,7 @@ public class ValidationTest extends Test
     }
 
     private Validator getValidator() {
-        return AgimatecValidatorFactory.getDefault().getValidator();
+        return ApacheValidatorFactory.getDefault().getValidator();
     }
 
     public void testGroups() {

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/extensions/MethodValidatorImplTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/extensions/MethodValidatorImplTest.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/extensions/MethodValidatorImplTest.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/extensions/MethodValidatorImplTest.java Mon Mar 29 08:05:57 2010
@@ -22,7 +22,7 @@ import junit.framework.TestSuite;
 
 import javax.validation.Validator;
 
-import org.apache.bval.jsr303.AgimatecValidatorFactory;
+import org.apache.bval.jsr303.ApacheValidatorFactory;
 import org.apache.bval.jsr303.ClassValidator;
 import org.apache.bval.jsr303.extensions.MethodValidator;
 import org.apache.bval.jsr303.extensions.MethodValidatorImpl;
@@ -126,6 +126,6 @@ public class MethodValidatorImplTest ext
     }
 
     private Validator getValidator() {
-        return AgimatecValidatorFactory.getDefault().getValidator();
+        return ApacheValidatorFactory.getDefault().getValidator();
     }
 }

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/CollectionValidationTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/CollectionValidationTest.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/CollectionValidationTest.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/CollectionValidationTest.java Mon Mar 29 08:05:57 2010
@@ -18,13 +18,12 @@
  */
 package org.apache.bval.jsr303.groups;
 
-import org.apache.bval.jsr303.example.*;
+import org.apache.bval.jsr303.ApacheValidatorFactory;
 import junit.framework.TestCase;
 
 import javax.validation.ConstraintViolation;
 import javax.validation.Validator;
 
-import org.apache.bval.jsr303.AgimatecValidatorFactory;
 import org.apache.bval.jsr303.example.Address;
 import org.apache.bval.jsr303.example.Author;
 import org.apache.bval.jsr303.example.Book;
@@ -49,7 +48,7 @@ public class CollectionValidationTest ex
     private Validator validator;
 
     protected void setUp() {
-        validator = AgimatecValidatorFactory.getDefault().getValidator();
+        validator = ApacheValidatorFactory.getDefault().getValidator();
     }
 
     public void testValidateList() {

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GroupSequenceTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GroupSequenceTest.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GroupSequenceTest.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GroupSequenceTest.java Mon Mar 29 08:05:57 2010
@@ -18,14 +18,13 @@
  */
 package org.apache.bval.jsr303.groups;
 
-import org.apache.bval.jsr303.example.*;
+import org.apache.bval.jsr303.ApacheValidatorFactory;
 import junit.framework.Assert;
 import junit.framework.TestCase;
 
 import javax.validation.ConstraintViolation;
 import javax.validation.Validator;
 
-import org.apache.bval.jsr303.AgimatecValidatorFactory;
 import org.apache.bval.jsr303.Jsr303Features;
 import org.apache.bval.jsr303.example.Author;
 import org.apache.bval.jsr303.example.Book;
@@ -49,7 +48,7 @@ import java.util.Set;
 public class GroupSequenceTest extends TestCase {
     public void testGroupSequence1() {
         MetaBean metaBean =
-              AgimatecValidatorFactory.getDefault().usingContext().getMetaBeanFinder()
+              ApacheValidatorFactory.getDefault().usingContext().getMetaBeanFinder()
                     .findForClass(GInterface1.class);
         List<Group> gseq = metaBean.getFeature(Jsr303Features.Bean.GROUP_SEQUENCE);
         Assert.assertNotNull(gseq);
@@ -59,7 +58,7 @@ public class GroupSequenceTest extends T
 
     public void testGroupSequence2() {
         MetaBean metaBean =
-              AgimatecValidatorFactory.getDefault().usingContext().getMetaBeanFinder()
+              ApacheValidatorFactory.getDefault().usingContext().getMetaBeanFinder()
                     .findForClass(GClass1.class);
         List<Group> gseq = metaBean.getFeature(Jsr303Features.Bean.GROUP_SEQUENCE);
         Assert.assertNotNull(gseq);
@@ -69,7 +68,7 @@ public class GroupSequenceTest extends T
 
     public void testGroupSequence3() {
         MetaBean metaBean =
-              AgimatecValidatorFactory.getDefault().usingContext().getMetaBeanFinder()
+              ApacheValidatorFactory.getDefault().usingContext().getMetaBeanFinder()
                     .findForClass(GClass2.class);
         List<Group> gseq = metaBean.getFeature(Jsr303Features.Bean.GROUP_SEQUENCE);
         Assert.assertNotNull(gseq);
@@ -80,7 +79,7 @@ public class GroupSequenceTest extends T
 
     public void testGroupSequence4() {
         MetaBean metaBean =
-              AgimatecValidatorFactory.getDefault().usingContext().getMetaBeanFinder()
+              ApacheValidatorFactory.getDefault().usingContext().getMetaBeanFinder()
                     .findForClass(GClass3.class);
         List<Group> gseq = metaBean.getFeature(Jsr303Features.Bean.GROUP_SEQUENCE);
         Assert.assertNotNull(gseq);
@@ -177,6 +176,6 @@ public class GroupSequenceTest extends T
     }
 
     public Validator getValidator() {
-        return AgimatecValidatorFactory.getDefault().getValidator();
+        return ApacheValidatorFactory.getDefault().getValidator();
     }
 }

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GroupValidationTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GroupValidationTest.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GroupValidationTest.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/GroupValidationTest.java Mon Mar 29 08:05:57 2010
@@ -23,7 +23,7 @@ import junit.framework.TestCase;
 import javax.validation.ConstraintViolation;
 import javax.validation.Validator;
 
-import org.apache.bval.jsr303.AgimatecValidatorFactory;
+import org.apache.bval.jsr303.ApacheValidatorFactory;
 import org.apache.bval.jsr303.util.TestUtils;
 
 import java.util.Set;
@@ -39,7 +39,7 @@ public class GroupValidationTest extends
     private Validator validator;
 
     protected void setUp() {
-        validator = AgimatecValidatorFactory.getDefault().getValidator();
+        validator = ApacheValidatorFactory.getDefault().getValidator();
     }
 
     /**

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/implicit/ImplicitGroupingTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/implicit/ImplicitGroupingTest.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/implicit/ImplicitGroupingTest.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/implicit/ImplicitGroupingTest.java Mon Mar 29 08:05:57 2010
@@ -23,7 +23,7 @@ import junit.framework.TestCase;
 import javax.validation.ConstraintViolation;
 import javax.validation.Validator;
 
-import org.apache.bval.jsr303.AgimatecValidatorFactory;
+import org.apache.bval.jsr303.ApacheValidatorFactory;
 import org.apache.bval.jsr303.util.TestUtils;
 
 import java.util.Set;
@@ -39,7 +39,7 @@ public class ImplicitGroupingTest extend
     private Validator validator;
 
     protected void setUp() {
-        validator = AgimatecValidatorFactory.getDefault().getValidator();
+        validator = ApacheValidatorFactory.getDefault().getValidator();
     }
 
     public void testValidateImplicitGrouping() {

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/inheritance/GroupInheritanceTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/inheritance/GroupInheritanceTest.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/inheritance/GroupInheritanceTest.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/inheritance/GroupInheritanceTest.java Mon Mar 29 08:05:57 2010
@@ -23,7 +23,7 @@ import junit.framework.TestCase;
 import javax.validation.ConstraintViolation;
 import javax.validation.Validator;
 
-import org.apache.bval.jsr303.AgimatecValidatorFactory;
+import org.apache.bval.jsr303.ApacheValidatorFactory;
 import org.apache.bval.jsr303.util.TestUtils;
 
 import java.util.Set;
@@ -39,7 +39,7 @@ public class GroupInheritanceTest extend
     private Validator validator;
 
     protected void setUp() {
-        validator = AgimatecValidatorFactory.getDefault().getValidator();
+        validator = ApacheValidatorFactory.getDefault().getValidator();
     }
 
     /**

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/redefining/RedefiningDefaultGroupTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/redefining/RedefiningDefaultGroupTest.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/redefining/RedefiningDefaultGroupTest.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/groups/redefining/RedefiningDefaultGroupTest.java Mon Mar 29 08:05:57 2010
@@ -24,7 +24,7 @@ import javax.validation.ConstraintViolat
 import javax.validation.GroupDefinitionException;
 import javax.validation.Validator;
 
-import org.apache.bval.jsr303.AgimatecValidatorFactory;
+import org.apache.bval.jsr303.ApacheValidatorFactory;
 import org.apache.bval.jsr303.util.TestUtils;
 
 import java.util.Set;
@@ -40,7 +40,7 @@ public class RedefiningDefaultGroupTest 
     private Validator validator;
 
     protected void setUp() {
-        validator = AgimatecValidatorFactory.getDefault().getValidator();
+        validator = ApacheValidatorFactory.getDefault().getValidator();
     }
 
     /**

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/xml/ValidationParserTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/xml/ValidationParserTest.java?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/xml/ValidationParserTest.java (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/jsr303/xml/ValidationParserTest.java Mon Mar 29 08:05:57 2010
@@ -27,8 +27,8 @@ import javax.validation.Validation;
 import javax.validation.Validator;
 import javax.validation.ValidatorFactory;
 
-import org.apache.bval.jsr303.AgimatecValidationProvider;
-import org.apache.bval.jsr303.AgimatecValidatorConfiguration;
+import org.apache.bval.jsr303.ApacheValidationProvider;
+import org.apache.bval.jsr303.ApacheValidatorConfiguration;
 import org.apache.bval.jsr303.ConfigurationImpl;
 import org.apache.bval.jsr303.example.XmlEntitySampleBean;
 import org.apache.bval.jsr303.resolver.SimpleTraversableResolver;
@@ -44,7 +44,7 @@ import java.util.Set;
  * @since <pre>11/25/2009</pre>
  */
 public class ValidationParserTest extends TestCase
-      implements AgimatecValidatorConfiguration.Properties {
+      implements ApacheValidatorConfiguration.Properties {
     public ValidationParserTest(String name) {
         super(name);
     }
@@ -52,7 +52,7 @@ public class ValidationParserTest extend
     public void testParse() {
         ValidationParser vp = new ValidationParser("sample-validation.xml");
         ConfigurationImpl config =
-              new ConfigurationImpl(null, new AgimatecValidationProvider());
+              new ConfigurationImpl(null, new ApacheValidationProvider());
         vp.processValidationConfig(config);
     }
 
@@ -67,8 +67,8 @@ public class ValidationParserTest extend
     }
 
     private ValidatorFactory getFactory() {
-        AgimatecValidatorConfiguration config =
-              Validation.byProvider(AgimatecValidationProvider.class).configure();
+        ApacheValidatorConfiguration config =
+              Validation.byProvider(ApacheValidationProvider.class).configure();
         config.addProperty(VALIDATION_XML_PATH, "sample-validation.xml");
         return config.buildValidatorFactory();
     }

Modified: incubator/bval/trunk/bval-jsr303/src/test/resources/sample-validation.xml
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/resources/sample-validation.xml?rev=928628&r1=928627&r2=928628&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/resources/sample-validation.xml (original)
+++ incubator/bval/trunk/bval-jsr303/src/test/resources/sample-validation.xml Mon Mar 29 08:05:57 2010
@@ -20,7 +20,7 @@
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation=
         "http://jboss.org/xml/ns/javax/validation/configuration validation-configuration-1.0.xsd">
-  <default-provider>org.apache.bval.jsr303.AgimatecValidationProvider</default-provider>
+  <default-provider>org.apache.bval.jsr303.ApacheValidationProvider</default-provider>
   <message-interpolator>org.apache.bval.jsr303.xml.TestMessageInterpolator</message-interpolator>
   <traversable-resolver>org.apache.bval.jsr303.resolver.SimpleTraversableResolver</traversable-resolver>
   <constraint-validator-factory>org.apache.bval.jsr303.xml.TestConstraintValidatorFactory</constraint-validator-factory>



Mime
View raw message