Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-1074

implement automatic supportsConversation() detection

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.5.0
    • 2.0.27
    • Context and Scopes
    • None

    Description

      Currently we rely on the user to define the configuration option in OpenWebBeansConfiguration

      APPLICATION_SUPPORTS_CONVERSATION = "org.apache.webbeans.application.supportsConversation";
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: