tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject incubator-tamaya git commit: TAMAYA-163: Prevent the extension registering a ConverterBean without types.
Date Fri, 03 Jun 2016 09:30:31 GMT
Repository: incubator-tamaya
Updated Branches:
  refs/heads/master ee263e4e0 -> 27f0d7971


TAMAYA-163: Prevent the extension registering a ConverterBean without types.


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

Branch: refs/heads/master
Commit: 27f0d7971d187c21099ab185056975aa97538c7e
Parents: ee263e4
Author: anatole <anatole@apache.org>
Authored: Fri Jun 3 11:30:10 2016 +0200
Committer: anatole <anatole@apache.org>
Committed: Fri Jun 3 11:30:25 2016 +0200

----------------------------------------------------------------------
 .../apache/tamaya/integration/cdi/ConfigurationExtension.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/27f0d797/modules/integration/cdi/src/main/java/org/apache/tamaya/integration/cdi/ConfigurationExtension.java
----------------------------------------------------------------------
diff --git a/modules/integration/cdi/src/main/java/org/apache/tamaya/integration/cdi/ConfigurationExtension.java
b/modules/integration/cdi/src/main/java/org/apache/tamaya/integration/cdi/ConfigurationExtension.java
index a6fee37..376836d 100644
--- a/modules/integration/cdi/src/main/java/org/apache/tamaya/integration/cdi/ConfigurationExtension.java
+++ b/modules/integration/cdi/src/main/java/org/apache/tamaya/integration/cdi/ConfigurationExtension.java
@@ -130,7 +130,9 @@ public class ConfigurationExtension implements Extension {
     }
 
     public void addConverter(@Observes final AfterBeanDiscovery abd, final BeanManager bm)
{
-        abd.addBean(new ConverterBean(convBean, types));
+        if(!types.isEmpty()) {
+            abd.addBean(new ConverterBean(convBean, types));
+        }
     }
 
     private void tryLoadOpererator(Class<? extends ConfigOperator> operatorClass) {


Mime
View raw message