cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cxf git commit: CXF-7336: [cdi] wrong org.apache.cxf.cdi.CdiResourceProvider#isSingleton implementation
Date Fri, 28 Apr 2017 01:30:29 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 1cfc45b66 -> ceda25008


CXF-7336: [cdi] wrong org.apache.cxf.cdi.CdiResourceProvider#isSingleton implementation


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

Branch: refs/heads/3.1.x-fixes
Commit: ceda250084949a8216a1d0f62cc64bd60d45a2fd
Parents: 1cfc45b
Author: reta <drreta@gmail.com>
Authored: Thu Apr 27 21:26:32 2017 -0400
Committer: reta <drreta@gmail.com>
Committed: Thu Apr 27 21:30:04 2017 -0400

----------------------------------------------------------------------
 .../cdi/src/main/java/org/apache/cxf/cdi/CdiResourceProvider.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ceda2500/integration/cdi/src/main/java/org/apache/cxf/cdi/CdiResourceProvider.java
----------------------------------------------------------------------
diff --git a/integration/cdi/src/main/java/org/apache/cxf/cdi/CdiResourceProvider.java b/integration/cdi/src/main/java/org/apache/cxf/cdi/CdiResourceProvider.java
index a417c0f..9953867 100644
--- a/integration/cdi/src/main/java/org/apache/cxf/cdi/CdiResourceProvider.java
+++ b/integration/cdi/src/main/java/org/apache/cxf/cdi/CdiResourceProvider.java
@@ -18,7 +18,6 @@
  */
 package org.apache.cxf.cdi;
 
-import javax.enterprise.context.RequestScoped;
 import javax.enterprise.context.spi.CreationalContext;
 import javax.enterprise.inject.spi.Bean;
 import javax.enterprise.inject.spi.BeanManager;
@@ -63,6 +62,6 @@ public class CdiResourceProvider implements ResourceProvider {
 
     @Override
     public boolean isSingleton() {
-        return !bean.getScope().isAssignableFrom(RequestScoped.class);
+        return !beanManager.isNormalScope(bean.getScope());
     }
 }


Mime
View raw message