Added Configuration.getConfigurationContext().

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/0a9aeae6
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/tree/0a9aeae6
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/diff/0a9aeae6

Branch: refs/heads/master
Commit: 0a9aeae664e531917413043292ae4cf2647aecea
Parents: e5bbbde
Author: anatole <anat...@apache.org>
Authored: Mon Mar 14 00:39:53 2016 +0100
Committer: Oliver B. Fischer <ple...@apache.org>
Committed: Fri Sep 30 21:29:37 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/tamaya/events/FrozenConfiguration.java    | 7 +++++++
 src/test/java/org/apache/tamaya/events/TestConfigView.java    | 6 ++++++
 2 files changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/0a9aeae6/src/main/java/org/apache/tamaya/events/FrozenConfiguration.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/tamaya/events/FrozenConfiguration.java 
b/src/main/java/org/apache/tamaya/events/FrozenConfiguration.java
index b874987..304ddba 100644
--- a/src/main/java/org/apache/tamaya/events/FrozenConfiguration.java
+++ b/src/main/java/org/apache/tamaya/events/FrozenConfiguration.java
@@ -24,6 +24,8 @@ import org.apache.tamaya.ConfigQuery;
 import org.apache.tamaya.Configuration;
 import org.apache.tamaya.ConfigurationProvider;
 import org.apache.tamaya.TypeLiteral;
+import org.apache.tamaya.functions.ConfigurationFunctions;
+import org.apache.tamaya.spi.ConfigurationContext;
 import org.apache.tamaya.spi.ConversionContext;
 import org.apache.tamaya.spi.PropertyConverter;
 
@@ -162,6 +164,11 @@ public final class FrozenConfiguration implements 
Configuration, Serializable {
     }
 
     @Override
+    public ConfigurationContext getContext() {
+        return ConfigurationFunctions.emptyConfigurationContext();
+    }
+
+    @Override
     public boolean equals(Object o) {
         if (this == o) {
             return true;

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/0a9aeae6/src/test/java/org/apache/tamaya/events/TestConfigView.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/tamaya/events/TestConfigView.java 
b/src/test/java/org/apache/tamaya/events/TestConfigView.java
index 4f2227a..8e5b397 100644
--- a/src/test/java/org/apache/tamaya/events/TestConfigView.java
+++ b/src/test/java/org/apache/tamaya/events/TestConfigView.java
@@ -24,6 +24,7 @@ import org.apache.tamaya.ConfigQuery;
 import org.apache.tamaya.Configuration;
 import org.apache.tamaya.ConfigurationProvider;
 import org.apache.tamaya.TypeLiteral;
+import org.apache.tamaya.spi.ConfigurationContext;
 import org.apache.tamaya.spi.ConversionContext;
 import org.apache.tamaya.spi.PropertyConverter;
 
@@ -73,6 +74,11 @@ public class TestConfigView implements ConfigOperator{
             }
 
             @Override
+            public ConfigurationContext getContext() {
+                return config.getContext();
+            }
+
+            @Override
             public String get(String key) {
                 return getProperties().get(key);
             }

Reply via email to