You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by an...@apache.org on 2015/12/18 02:45:30 UTC

[02/10] incubator-tamaya git commit: Added default implementation for getName in base class.

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 <an...@apache.org>
Authored: Wed Dec 16 08:36:28 2015 +0100
Committer: anatole <an...@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){