tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ple...@apache.org
Subject [37/50] [abbrv] incubator-tamaya-extensions git commit: Added Configuration.getConfigurationContext().
Date Mon, 26 Sep 2016 22:19:18 GMT
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/2494bf89
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/tree/2494bf89
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/diff/2494bf89

Branch: refs/heads/master
Commit: 2494bf8915c9f5046c010d5d222305730e7102bd
Parents: 330179f
Author: anatole <anatole@apache.org>
Authored: Mon Mar 14 00:39:53 2016 +0100
Committer: Oliver B. Fischer <plexus@apache.org>
Committed: Tue Sep 27 00:18:31 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/2494bf89/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/2494bf89/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);
             }


Mime
View raw message