tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TOMEE-2059) [CDI] don't release normal scoped beans?
Date Fri, 09 Jun 2017 12:36:18 GMT
Romain Manni-Bucau created TOMEE-2059:
-----------------------------------------

             Summary: [CDI] don't release normal scoped beans?
                 Key: TOMEE-2059
                 URL: https://issues.apache.org/jira/browse/TOMEE-2059
             Project: TomEE
          Issue Type: New Feature
            Reporter: Romain Manni-Bucau


Working on CXF-7403 I wonder if createCreationalContext shouldn't also test if the bean is
normal scoped or not:

{code}
if (!(bean instanceof DefaultApplicationBean) && !beanManager.isNormalScope(bean.getScope())
{code}

For normal scoped beans the container/libraries will handle the releasing of the beans so
the creational context should not need to be released manually.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message