tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ple...@apache.org
Subject incubator-tamaya git commit: Fixes for TAMAYA-132.
Date Sun, 20 Dec 2015 12:12:04 GMT
Repository: incubator-tamaya
Updated Branches:
  refs/heads/master cb08b1e43 -> 9915f3da3


Fixes for TAMAYA-132.


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

Branch: refs/heads/master
Commit: 9915f3da3e9f9aa390d312cecba3c37aa056c76d
Parents: cb08b1e
Author: Oliver B. Fischer <plexus@apache.org>
Authored: Sun Dec 20 13:11:44 2015 +0100
Committer: Oliver B. Fischer <plexus@apache.org>
Committed: Sun Dec 20 13:11:52 2015 +0100

----------------------------------------------------------------------
 .../org/apache/tamaya/integration/osgi/HelloServiceImpl.java   | 6 +-----
 .../apache/tamaya/integration/spring/ConfiguredSpringBean.java | 4 +---
 2 files changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/9915f3da/modules/integration/osgi/src/test/java/org/apache/tamaya/integration/osgi/HelloServiceImpl.java
----------------------------------------------------------------------
diff --git a/modules/integration/osgi/src/test/java/org/apache/tamaya/integration/osgi/HelloServiceImpl.java
b/modules/integration/osgi/src/test/java/org/apache/tamaya/integration/osgi/HelloServiceImpl.java
index 5494cb8..6888822 100644
--- a/modules/integration/osgi/src/test/java/org/apache/tamaya/integration/osgi/HelloServiceImpl.java
+++ b/modules/integration/osgi/src/test/java/org/apache/tamaya/integration/osgi/HelloServiceImpl.java
@@ -19,17 +19,13 @@
 package org.apache.tamaya.integration.osgi;
 
 import org.apache.tamaya.inject.api.Config;
-import org.apache.tamaya.inject.api.ConfigDefault;
-
-import javax.enterprise.inject.Default;
 
 /**
  * Simple service to test injection in OSGI.
  */
 public class HelloServiceImpl implements HelloService{
 
-    @Config("example.message")
-    @ConfigDefault("A Tamaya default.")
+    @Config(value = "example.message", defaultValue = "A Tamaya default.")
     private String message;
 
     @Override

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/9915f3da/modules/integration/spring/src/test/java/org/apache/tamaya/integration/spring/ConfiguredSpringBean.java
----------------------------------------------------------------------
diff --git a/modules/integration/spring/src/test/java/org/apache/tamaya/integration/spring/ConfiguredSpringBean.java
b/modules/integration/spring/src/test/java/org/apache/tamaya/integration/spring/ConfiguredSpringBean.java
index b926233..c43dde0 100644
--- a/modules/integration/spring/src/test/java/org/apache/tamaya/integration/spring/ConfiguredSpringBean.java
+++ b/modules/integration/spring/src/test/java/org/apache/tamaya/integration/spring/ConfiguredSpringBean.java
@@ -19,7 +19,6 @@
 package org.apache.tamaya.integration.spring;
 
 import org.apache.tamaya.inject.api.Config;
-import org.apache.tamaya.inject.api.ConfigDefault;
 import org.apache.tamaya.inject.api.ConfigDefaultSections;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.core.env.Environment;
@@ -38,8 +37,7 @@ public class ConfiguredSpringBean {
     @Config("java.version")
     private String javaVersion;
 
-    @Config
-    @ConfigDefault("23")
+    @Config(defaultValue = "23")
     private int testNumber;
 
     public String getJavaVersion(){


Mime
View raw message