tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject [5/5] incubator-tamaya git commit: Added logging for loading of the SPI.
Date Thu, 22 Dec 2016 21:19:29 GMT
Added logging for loading of the SPI.


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

Branch: refs/heads/master
Commit: 9c073a739cbd6f7b78564b52485088e7949e7e75
Parents: ff03e51
Author: anatole <anatole@apache.org>
Authored: Thu Dec 22 22:01:21 2016 +0100
Committer: anatole <anatole@apache.org>
Committed: Thu Dec 22 22:01:21 2016 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/tamaya/ConfigurationProvider.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/9c073a73/code/api/src/main/java/org/apache/tamaya/ConfigurationProvider.java
----------------------------------------------------------------------
diff --git a/code/api/src/main/java/org/apache/tamaya/ConfigurationProvider.java b/code/api/src/main/java/org/apache/tamaya/ConfigurationProvider.java
index e4bbb9a..6927d94 100644
--- a/code/api/src/main/java/org/apache/tamaya/ConfigurationProvider.java
+++ b/code/api/src/main/java/org/apache/tamaya/ConfigurationProvider.java
@@ -23,11 +23,14 @@ import org.apache.tamaya.spi.ConfigurationContextBuilder;
 import org.apache.tamaya.spi.ConfigurationProviderSpi;
 import org.apache.tamaya.spi.ServiceContextManager;
 
+import java.util.logging.Logger;
+
 /**
  * Static access to the {@link Configuration} for the very application.
  */
 public final class ConfigurationProvider {
 
+    private static final Logger LOG = Logger.getLogger(ConfigurationProvider.class.getName());
     private static final ConfigurationProviderSpi PROVIDER_SPI = loadSpi();
 
     private static ConfigurationProviderSpi loadSpi() {
@@ -36,7 +39,7 @@ public final class ConfigurationProvider {
         if(spi==null){
             throw new IllegalStateException("ConfigurationProviderSpi not available.");
         }
-
+        LOG.info("TAMAYA Loaded ConfigurationProviderSpi: " + spi.getClass().getName());
         return spi;
     }
 
@@ -103,6 +106,7 @@ public final class ConfigurationProvider {
      *                                                 applying a new Configuration.
      */
     public static void setConfiguration(Configuration config) {
+        LOG.info("TAMAYA Applying new Configuration: " + config);
         PROVIDER_SPI.setConfiguration(config);
     }
 


Mime
View raw message