tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject [02/10] incubator-tamaya git commit: Added default implementation for getName in base class.
Date Fri, 18 Dec 2015 01:45:30 GMT
Added default implementation for getName in base class.


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

Branch: refs/heads/master
Commit: 8b0143a7e8cf515501e4236997e62de78b874af0
Parents: 5373836
Author: anatole <anatole@apache.org>
Authored: Wed Dec 16 08:36:28 2015 +0100
Committer: anatole <anatole@apache.org>
Committed: Wed Dec 16 08:36:28 2015 +0100

----------------------------------------------------------------------
 .../apache/tamaya/core/propertysource/BasePropertySource.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/8b0143a7/core/src/main/java/org/apache/tamaya/core/propertysource/BasePropertySource.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/tamaya/core/propertysource/BasePropertySource.java
b/core/src/main/java/org/apache/tamaya/core/propertysource/BasePropertySource.java
index 286897c..e9f53f9 100644
--- a/core/src/main/java/org/apache/tamaya/core/propertysource/BasePropertySource.java
+++ b/core/src/main/java/org/apache/tamaya/core/propertysource/BasePropertySource.java
@@ -47,6 +47,11 @@ public abstract class BasePropertySource implements PropertySource{
     }
 
     @Override
+    public String getName() {
+        return getClass().getSimpleName();
+    }
+
+    @Override
     public int getOrdinal() {
         String configuredOrdinal = get(TAMAYA_ORDINAL);
         if(configuredOrdinal!=null){


Mime
View raw message