You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by an...@apache.org on 2016/10/30 17:22:14 UTC

[05/10] incubator-tamaya git commit: TAMAYA-182: Removed unused methods.

TAMAYA-182: Removed unused methods.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/76963e71
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/76963e71
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/76963e71

Branch: refs/heads/master
Commit: 76963e71cb3b61316b127c8c2591b3998fc98130
Parents: e442b31
Author: anatole <an...@apache.org>
Authored: Sun Oct 23 17:40:12 2016 +0200
Committer: anatole <an...@apache.org>
Committed: Sun Oct 23 17:40:12 2016 +0200

----------------------------------------------------------------------
 .../apache/tamaya/spi/ConfigurationContext.java | 18 ----------------
 .../internal/DefaultConfigurationContext.java   | 22 --------------------
 pom.xml                                         |  2 +-
 3 files changed, 1 insertion(+), 41 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/76963e71/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java
----------------------------------------------------------------------
diff --git a/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java b/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java
index f631d55..8f15e85 100644
--- a/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java
+++ b/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java
@@ -43,24 +43,6 @@ public interface ConfigurationContext {
     void addPropertySources(PropertySource... propertySources);
 
     /**
-     * This method can be used for programmatically adding {@link PropertyFilter}s.
-     * It is not needed for normal 'usage' by end users, but only for Extension Developers!
-     *
-     * @param propertyFilters the PropertyFilters to add
-     * @deprecated Use {@link ConfigurationContextBuilder} to create a new {@link ConfigurationContext}.
-     * @see #toBuilder()
-     */
-    @Deprecated
-    void addPropertyFilter(PropertyFilter... propertyFilters);
-
-    /**
-     * Allows to check if a given property source is registered, using its name.
-     * @param name the property source name.
-     * @return true, if a property source with the given name is present.
-     */
-    boolean containsPropertySource(String name);
-
-    /**
      * This method returns the current list of registered PropertySources ordered via their ordinal.
      * PropertySources with a lower ordinal come last. The PropertySource with the
      * highest ordinal comes first.

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/76963e71/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java
----------------------------------------------------------------------
diff --git a/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java b/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java
index 15c6147..29be92f 100644
--- a/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java
+++ b/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java
@@ -123,28 +123,6 @@ public class DefaultConfigurationContext implements ConfigurationContext {
         }
     }
 
-
-    @Deprecated
-    @Override
-    public void addPropertyFilter(PropertyFilter... propertyFiltersToAdd) {
-        Lock writeLock = propertyFilterLock.writeLock();
-        try {
-            writeLock.lock();
-            List<PropertyFilter> newPropertyFilters = new ArrayList<>(this.immutablePropertyFilters);
-            newPropertyFilters.addAll(Arrays.asList(propertyFiltersToAdd));
-            Collections.sort(newPropertyFilters, new PropertyFilterComparator());
-
-            this.immutablePropertyFilters = Collections.unmodifiableList(newPropertyFilters);
-        } finally {
-            writeLock.unlock();
-        }
-    }
-
-    @Override
-    public boolean containsPropertySource(String name) {
-        return getPropertySource(name)!=null;
-    }
-
     @Override
     public boolean equals(Object o) {
         if (this == o) return true;

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/76963e71/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index ccc0c5f..4c2f975 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@ under the License.
     <version>0.3-incubating-SNAPSHOT</version>
     <packaging>pom</packaging>
 
-    <name>Apache Tamaya</name>
+    <name>Apache Tamaya Base</name>
     <description>Apache Tamaya - Java Configuration</description>
     <url>https://tamaya.incubator.apache.org</url>
     <inceptionYear>2014</inceptionYear>