Romain Manni-Bucau created CXF-7336:
---------------------------------------
Summary: [cdi] wrong
org.apache.cxf.cdi.CdiResourceProvider#isSingleton implementation
Key: CXF-7336
URL: https://issues.apache.org/jira/browse/CXF-7336
Project: CXF
Issue Type: Task
Components: JAX-RS
Reporter: Romain Manni-Bucau
org.apache.cxf.cdi.CdiResourceProvider#isSingleton returns "is not request
scoped" but cdi will issue a contextual proxy for @RequestScoped instances so a
@RequestScoped instance *is* a singleton.
The implementation should be !beanManager.isNormalScope(bean.getScope()). If a
normal scope (@ApplicationScoped, @RequestScoped...) then the context is
managed outside the proxy and the proxy is a singleton.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)