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

Add the possibility to remove a bean in AfterBeanDiscovery event

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.Final, 2.0-EDR1
    • Fix Version/s: None
    • Component/s: Portable Extensions
    • Labels:
      None

      Description

      Right now, the last occasion to "veto" a bean is in ProcessBeanAttributes, but we sometimes need to have all the bean discovered to decide if a given Bean should be present or not.
      Sometimes we also need a way to decide lately for some bean properties, so it would be useful to remove the original bean and provide a custom one wrapping it in replacement.
      Adding the removeBean(Bean<?> bean) to AfterBeanDiscoveryEvent would be helpful to perform easily these use case.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                antoinesabot-durand Antoine Sabot-Durand
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: