You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2017/04/28 01:26:47 UTC
cxf git commit: CXF-7336: [cdi] wrong
org.apache.cxf.cdi.CdiResourceProvider#isSingleton implementation
Repository: cxf
Updated Branches:
refs/heads/master 7fab62456 -> db91a0a74
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/db91a0a7
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/db91a0a7
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/db91a0a7
Branch: refs/heads/master
Commit: db91a0a747bf46b08dddaaa1df57207eb703d67d
Parents: 7fab624
Author: reta <dr...@gmail.com>
Authored: Thu Apr 27 21:26:32 2017 -0400
Committer: reta <dr...@gmail.com>
Committed: Thu Apr 27 21:26:32 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/db91a0a7/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 dfb8d69..68d3b2b 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());
}
}