tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ple...@apache.org
Subject [4/6] incubator-tamaya git commit: Fixed compile errors in the project.
Date Sat, 28 Feb 2015 22:52:07 GMT
Fixed compile errors in the project.


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

Branch: refs/heads/master
Commit: e7b5a1190bc4c21215c9611f3cee8326180cd24b
Parents: d590c0e
Author: Oliver B. Fischer <plexus@apache.org>
Authored: Sat Feb 28 13:04:11 2015 +0100
Committer: Oliver B. Fischer <plexus@apache.org>
Committed: Sat Feb 28 23:42:39 2015 +0100

----------------------------------------------------------------------
 .../builder/ProgrammaticConfigurationContext.java   | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/e7b5a119/modules/builder/src/main/java/org/apache/tamaya/builder/ProgrammaticConfigurationContext.java
----------------------------------------------------------------------
diff --git a/modules/builder/src/main/java/org/apache/tamaya/builder/ProgrammaticConfigurationContext.java
b/modules/builder/src/main/java/org/apache/tamaya/builder/ProgrammaticConfigurationContext.java
index 7a4ba41..6c7e845 100644
--- a/modules/builder/src/main/java/org/apache/tamaya/builder/ProgrammaticConfigurationContext.java
+++ b/modules/builder/src/main/java/org/apache/tamaya/builder/ProgrammaticConfigurationContext.java
@@ -23,6 +23,7 @@ import org.apache.tamaya.PropertyConverter;
 import org.apache.tamaya.TypeLiteral;
 import org.apache.tamaya.core.internal.PropertyConverterManager;
 import org.apache.tamaya.spi.ConfigurationContext;
+import org.apache.tamaya.spi.ConfigurationContextBuilder;
 import org.apache.tamaya.spi.PropertyFilter;
 import org.apache.tamaya.spi.PropertySource;
 import org.apache.tamaya.spi.PropertySourceProvider;
@@ -42,6 +43,7 @@ import java.util.StringJoiner;
 import java.util.concurrent.locks.Lock;
 import java.util.concurrent.locks.StampedLock;
 import java.util.function.Function;
+import java.util.function.Predicate;
 import java.util.logging.Logger;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
@@ -155,7 +157,6 @@ class ProgrammaticConfigurationContext implements ConfigurationContext
{
                      .collect(toList());
     }
 
-    @Override
     public void addPropertySources(PropertySource... propertySourcesToAdd) {
         Lock writeLock = propertySourceLock.asWriteLock();
         try {
@@ -222,7 +223,6 @@ class ProgrammaticConfigurationContext implements ConfigurationContext
{
         return immutablePropertySources;
     }
 
-    @Override
     public <T> void addPropertyConverter(TypeLiteral<T> typeToConvert, PropertyConverter<T>
propertyConverter) {
         propertyConverterManager.register(typeToConvert, propertyConverter);
         LOG.info(() -> "Added PropertyConverter: " + propertyConverter.getClass().getName());
@@ -254,6 +254,18 @@ class ProgrammaticConfigurationContext implements ConfigurationContext
{
         return joiner.toString();
     }
 
+    @Override
+    public ConfigurationContextBuilder toBuilder() {
+        // @todo Check if it could be useful to support this method, Oliver B. Fischer
+        throw new RuntimeException("This method is currently not supported.");
+    }
+
+    @Override
+    public Collection<PropertySource> getPropertySources(Predicate<PropertySource>
selector) {
+        // @todo Check if it could be useful to support this method, Oliver B. Fischer
+        throw new RuntimeException("This method is currently not supported.");
+    }
+
     /**
      * The Builder for {@link ProgrammaticConfigurationContext}
      */


Mime
View raw message