You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2017/07/07 21:13:00 UTC

[jira] [Updated] (OWB-1074) implement automatic supportsConversation() detection

     [ https://issues.apache.org/jira/browse/OWB-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg updated OWB-1074:
-------------------------------
    Fix Version/s:     (was: 1.7.4)

> implement automatic supportsConversation() detection
> ----------------------------------------------------
>
>                 Key: OWB-1074
>                 URL: https://issues.apache.org/jira/browse/OWB-1074
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Context and Scopes
>    Affects Versions: 1.5.0
>            Reporter: Mark Struberg
>             Fix For: 1.7.5
>
>
> Currently we rely on the user to define the configuration option in OpenWebBeansConfiguration
> {code}
> APPLICATION_SUPPORTS_CONVERSATION = "org.apache.webbeans.application.supportsConversation";
> {code}
> This is by default disabled in owb-impl (core) and gets enabled by adding the web or jsf plugins.
> We could improve this by not only allowing {{true}} or {{false}} but also with an {{auto}} mode. 
> In this mode the BeanManager can walk through all registered beans and check whether there is a single @ConversationScoped bean. In that case we will automagically enable CDI conversations, otherwise OWB will dynamically disable conversation support and don't need to do all kinds of work in WebContextsService for example.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)