tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject [2/9] incubator-tamaya git commit: TAMAYA-114: Added base module with common SPI implementations.
Date Tue, 06 Oct 2015 07:57:10 GMT
TAMAYA-114: Added base module with common SPI implementations.


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

Branch: refs/heads/master
Commit: a0aa50122887c46fb395bbd3eebd0e9384533614
Parents: b4fc831
Author: anatole <anatole@apache.org>
Authored: Tue Oct 6 09:45:54 2015 +0200
Committer: anatole <anatole@apache.org>
Committed: Tue Oct 6 09:55:38 2015 +0200

----------------------------------------------------------------------
 modules/integration/pom.xml                         |  1 +
 .../integration/spring/ConfiguredSpringBean.java    | 16 +++++++---------
 modules/pom.xml                                     |  1 +
 3 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/a0aa5012/modules/integration/pom.xml
----------------------------------------------------------------------
diff --git a/modules/integration/pom.xml b/modules/integration/pom.xml
index db10c11..9e87c62 100644
--- a/modules/integration/pom.xml
+++ b/modules/integration/pom.xml
@@ -33,6 +33,7 @@ under the License.
 
     <modules>
         <module>spring</module>
+        <module>cdi</module>
     </modules>
 
 </project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/a0aa5012/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 9a2526b..603d6e9 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
@@ -18,28 +18,26 @@
  */
 package org.apache.tamaya.integration.spring;
 
-import org.apache.tamaya.inject.ConfiguredProperty;
-import org.apache.tamaya.inject.ConfiguredType;
-import org.apache.tamaya.inject.DefaultValue;
-import org.apache.tamaya.inject.NoConfig;
+import org.apache.tamaya.inject.ConfigDefaultSections;
+import org.apache.tamaya.inject.ConfigProperty;
+import org.apache.tamaya.inject.ConfigDefault;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.context.annotation.Bean;
 import org.springframework.core.env.Environment;
 
 /**
  * Created by Anatole on 25.09.2015.
  */
-@ConfiguredType
+@ConfigDefaultSections
 public class ConfiguredSpringBean {
 
     @Autowired
     private Environment env;
 
-    @ConfiguredProperty(keys = "java.version")
+    @ConfigProperty(keys = "java.version")
     private String javaVersion;
 
-    @ConfiguredProperty
-    @DefaultValue("23")
+    @ConfigProperty
+    @ConfigDefault("23")
     private int testNumber;
 
     public String getJavaVersion(){

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/a0aa5012/modules/pom.xml
----------------------------------------------------------------------
diff --git a/modules/pom.xml b/modules/pom.xml
index 0ea1ca9..0d89231 100644
--- a/modules/pom.xml
+++ b/modules/pom.xml
@@ -34,6 +34,7 @@ under the License.
 
     <modules>
         <module>builder</module>
+        <module>spi-support</module>
         <module>events</module>
         <module>formats</module>
         <module>injection</module>


Mime
View raw message