tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject [2/2] incubator-tamaya-extensions git commit: TAMAYA-362 Implement missing getSnapshot methods.
Date Mon, 19 Nov 2018 22:55:43 GMT
TAMAYA-362 Implement missing getSnapshot methods.


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

Branch: refs/heads/master
Commit: cd2707c27d5c0e527874eb51e34ecda97055deb3
Parents: 13cb423
Author: Aaron Coburn <acoburn@apache.org>
Authored: Mon Nov 19 23:53:22 2018 +0100
Committer: Anatole Tresch <atsticks@gmail.com>
Committed: Mon Nov 19 23:53:22 2018 +0100

----------------------------------------------------------------------
 .../apache/tamaya/microprofile/MicroprofileAdapterTest.java  | 7 ++++++-
 .../mutableconfig/internal/DefaultMutableConfiguration.java  | 8 +++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/cd2707c2/modules/microprofile/src/test/java/org/apache/tamaya/microprofile/MicroprofileAdapterTest.java
----------------------------------------------------------------------
diff --git a/modules/microprofile/src/test/java/org/apache/tamaya/microprofile/MicroprofileAdapterTest.java
b/modules/microprofile/src/test/java/org/apache/tamaya/microprofile/MicroprofileAdapterTest.java
index beaac77..bf47909 100644
--- a/modules/microprofile/src/test/java/org/apache/tamaya/microprofile/MicroprofileAdapterTest.java
+++ b/modules/microprofile/src/test/java/org/apache/tamaya/microprofile/MicroprofileAdapterTest.java
@@ -238,6 +238,11 @@ public class MicroprofileAdapterTest {
         public ConfigurationContext getContext() {
             throw new RuntimeException("Not implemented yet!");
         }
+
+        @Override
+        public ConfigurationSnapshot getSnapshot(Iterable<String> keys) {
+            throw new RuntimeException("Not implemented yet!");
+        }
     }
 
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/cd2707c2/modules/mutable-config/src/main/java/org/apache/tamaya/mutableconfig/internal/DefaultMutableConfiguration.java
----------------------------------------------------------------------
diff --git a/modules/mutable-config/src/main/java/org/apache/tamaya/mutableconfig/internal/DefaultMutableConfiguration.java
b/modules/mutable-config/src/main/java/org/apache/tamaya/mutableconfig/internal/DefaultMutableConfiguration.java
index 0fe3e23..7069a6f 100644
--- a/modules/mutable-config/src/main/java/org/apache/tamaya/mutableconfig/internal/DefaultMutableConfiguration.java
+++ b/modules/mutable-config/src/main/java/org/apache/tamaya/mutableconfig/internal/DefaultMutableConfiguration.java
@@ -21,6 +21,7 @@ package org.apache.tamaya.mutableconfig.internal;
 import org.apache.tamaya.ConfigOperator;
 import org.apache.tamaya.ConfigQuery;
 import org.apache.tamaya.Configuration;
+import org.apache.tamaya.ConfigurationSnapshot;
 import org.apache.tamaya.TypeLiteral;
 import org.apache.tamaya.mutableconfig.ChangePropagationPolicy;
 import org.apache.tamaya.mutableconfig.MutableConfiguration;
@@ -158,6 +159,11 @@ public class DefaultMutableConfiguration implements MutableConfiguration
{
         return config.getContext();
     }
 
+    @Override
+    public ConfigurationSnapshot getSnapshot(Iterable<String> keys) {
+        return config.getSnapshot(keys);
+    }
+
     private Collection<PropertySource> getPropertySources() {
         return this.config.getContext().getPropertySources();
     }
@@ -169,4 +175,4 @@ public class DefaultMutableConfiguration implements MutableConfiguration
{
                 '}';
     }
 
-}
\ No newline at end of file
+}


Mime
View raw message