You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bval.apache.org by mb...@apache.org on 2018/02/28 17:30:12 UTC

[3/3] bval git commit: remove obsolete code

remove obsolete code


Project: http://git-wip-us.apache.org/repos/asf/bval/repo
Commit: http://git-wip-us.apache.org/repos/asf/bval/commit/c7477ed0
Tree: http://git-wip-us.apache.org/repos/asf/bval/tree/c7477ed0
Diff: http://git-wip-us.apache.org/repos/asf/bval/diff/c7477ed0

Branch: refs/heads/bv2
Commit: c7477ed0a95717783605f816d769ff8047b58dcb
Parents: 142776c
Author: Matt Benson <mb...@apache.org>
Authored: Wed Feb 28 11:29:57 2018 -0600
Committer: Matt Benson <mb...@apache.org>
Committed: Wed Feb 28 11:29:57 2018 -0600

----------------------------------------------------------------------
 .../apache/bval/jsr/ApacheFactoryContext.java   | 14 ------
 .../bval/jsr/ApacheValidatorConfiguration.java  | 47 --------------------
 2 files changed, 61 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bval/blob/c7477ed0/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheFactoryContext.java
----------------------------------------------------------------------
diff --git a/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheFactoryContext.java b/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheFactoryContext.java
index 2feab79..c470e36 100644
--- a/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheFactoryContext.java
+++ b/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheFactoryContext.java
@@ -64,15 +64,6 @@ public class ApacheFactoryContext implements ValidatorContext {
     }
 
     /**
-     * Get the {@link ApacheValidatorFactory} used by this {@link ApacheFactoryContext}.
-     * 
-     * @return {@link ApacheValidatorFactory}
-     */
-    public ApacheValidatorFactory getFactory() {
-        return factory;
-    }
-
-    /**
      * Discard cached metadata. Calling this method unnecessarily has the effect of severly limiting performance,
      * therefore only do so when changes have been made that affect validation metadata, i.e. particularly NOT in
      * response to:
@@ -188,9 +179,4 @@ public class ApacheFactoryContext implements ValidatorContext {
     public GroupsComputer getGroupsComputer() {
         return groupsComputer.get();
     }
-
-    boolean isTreatMapsLikeBeans() {
-        return Boolean
-            .parseBoolean(factory.getProperties().get(ApacheValidatorConfiguration.Properties.TREAT_MAPS_LIKE_BEANS));
-    }
 }

http://git-wip-us.apache.org/repos/asf/bval/blob/c7477ed0/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheValidatorConfiguration.java
----------------------------------------------------------------------
diff --git a/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheValidatorConfiguration.java b/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheValidatorConfiguration.java
index 81187f3..ce68d30 100644
--- a/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheValidatorConfiguration.java
+++ b/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheValidatorConfiguration.java
@@ -19,7 +19,6 @@
 package org.apache.bval.jsr;
 
 import javax.validation.Configuration;
-import javax.validation.ValidatorContext;
 import javax.validation.ValidatorFactory;
 import javax.validation.spi.ConfigurationState;
 
@@ -40,38 +39,6 @@ public interface ApacheValidatorConfiguration extends Configuration<ApacheValida
         String VALIDATION_XML_PATH = "apache.bval.validation-xml-path";
 
         /**
-         * true/false. use Introspector (java beans) metadata additionally
-         * to build metadata with JSR303.<br>
-         * This means that all properties exist that are java-bean properties and
-         * and that some features (Hidden, Readonly) are taken from Introspector
-         * to create the meta data.<br>
-         * default: false
-         */
-        String ENABLE_INTROSPECTOR = "apache.bval.enable-introspector";
-
-        /**
-         * true/false. use Apache metaBeans xml format additionally to
-         * build metadata with JSR303.
-         * default: false
-         *
-         * @deprecated we could decide to drop this feature in the future.
-         * we keep it as long as we support both: jsr and xstream-xml meta data at
-         * the same time (and potentially for the same domain classes)
-         */
-        @Deprecated
-        String ENABLE_METABEANS_XML = "apache.bval.enable-metabeans-xml";
-
-        /**
-         * - true (validate maps like beans, so that
-         *     you can use Maps to validate dynamic classes or
-         *     beans for which you have the MetaBean but no instances)
-         * - false (default), validate maps like collections
-         *     (validating the values only)
-         * default: false
-         */
-        String TREAT_MAPS_LIKE_BEANS = "apache.bval.treat-maps-like-beans";
-
-        /**
          * Specifies the classname of the {@link ValidatorFactory} to use: this
          * class is presumed have a constructor that accepts a single
          * {@link ConfigurationState} argument.
@@ -79,20 +46,6 @@ public interface ApacheValidatorConfiguration extends Configuration<ApacheValida
         String VALIDATOR_FACTORY_CLASSNAME = "apache.bval.validator-factory-classname";
 
         /**
-         * Specifies the names, delimited by whitespace, of
-         * {@link MetaBeanFactory} classes that should be added to collaborate
-         * with an {@link ApacheFactoryContext}'s {@link MetaBeanFinder}. These
-         * are instantiated per {@link ValidatorContext}, attempting to use
-         * constructor arguments of decreasing specificity:
-         * <ol>
-         * <li>assignable from the creating {@link ApacheFactoryContext}</li>
-         * <li>assignable from the associated {@link ApacheValidatorFactory}</li>
-         * <li>default (no-args) constructor</li>
-         * </ol>
-         */
-        String METABEAN_FACTORY_CLASSNAMES = "apache.bval.metabean-factory-classnames";
-
-        /**
          * Size to use for caching of constraint-related information. Default is {@code 50}.
          */
         String CONSTRAINTS_CACHE_SIZE = "apache.bval.constraints-cache-size";