Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-315

Allow BeanManager methods, such as getBeans in AfterDeploymentValidation observers

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.1.PFD
    • Component/s: Beans
    • Labels:
      None

      Description

      CDI-274 which disallows some BeanManager methods during application initialization is too strict.

      Mark's original suggestion for CDI-274 contained a very important part "...before the AfterDeploymentValidation phase". AfterDeploymentValidation observers would be quite useless if we can't use BeanManager.getBeans in them IMHO, and I think there is no reason to disallow BeanManager methods in AfterDeploymentValidation, so we should allow them there...

      So maybe something like:
      "IllegalStateException if called during application initialization before the AfterDeploymentValidation phase"

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pmuir Pete Muir
                  Reporter:
                  maschmid Marek Schmidt
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: