tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject [11/16] incubator-tamaya git commit: Added Configuration.getConfiguratinContext()
Date Sun, 13 Mar 2016 23:59:12 GMT
Added Configuration.getConfiguratinContext()


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

Branch: refs/heads/master
Commit: 7b6148c5ad94f30570f1311c3da44f6d53011850
Parents: 18fcd12
Author: anatole <anatole@apache.org>
Authored: Mon Mar 14 00:35:54 2016 +0100
Committer: anatole <anatole@apache.org>
Committed: Mon Mar 14 00:35:54 2016 +0100

----------------------------------------------------------------------
 .../apache/tamaya/core/internal/DefaultConfiguration.java    | 5 +++++
 .../tamaya/core/internal/DefaultConfigurationProvider.java   | 8 --------
 2 files changed, 5 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/7b6148c5/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfiguration.java
----------------------------------------------------------------------
diff --git a/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfiguration.java
b/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfiguration.java
index ee8abcd..1c76d8c 100644
--- a/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfiguration.java
+++ b/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfiguration.java
@@ -204,6 +204,11 @@ public class DefaultConfiguration implements Configuration {
         return query.query(this);
     }
 
+    @Override
+    public ConfigurationContext getContext() {
+        return this.configurationContext;
+    }
+
     /**
      * Access the configuration's context.
      * @return the configurastion context-

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/7b6148c5/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationProvider.java
----------------------------------------------------------------------
diff --git a/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationProvider.java
b/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationProvider.java
index 34c3c53..4330b7e 100644
--- a/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationProvider.java
+++ b/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationProvider.java
@@ -45,14 +45,6 @@ public class DefaultConfigurationProvider implements ConfigurationProviderSpi
{
     }
 
     @Override
-    public ConfigurationContext getConfigurationContext(Configuration config) {
-        if(config instanceof DefaultConfiguration){
-            return ((DefaultConfiguration)config).getConfigurationContext();
-        }
-        return null;
-    }
-
-    @Override
     public ConfigurationContextBuilder getConfigurationContextBuilder() {
         return ServiceContextManager.getServiceContext().getService(ConfigurationContextBuilder.class);
     }


Mime
View raw message