OpenWebBeans
  1. OpenWebBeans
  2. OWB-643

it isn't possible to add/remove @Alternative during the bootstrapping process

    Details

      Description

      WebBeansUtil#setInjectionTargetBeanEnableFlag calls hasInjectionTargetBeanAnnotatedWithAlternative which performs a very strict check (if the given class is annotated with @Alternative).
      so it isn't possible to add or remove @Alternative via ProcessAnnotatedType during the bootstrapping process.

        Activity

        Hide
        Mark Struberg added a comment -

        released with OWB-1.1.4

        Show
        Mark Struberg added a comment - released with OWB-1 .1.4
        Hide
        Mark Struberg added a comment -

        fixed. It's not fully usable in CDI-1.0 because there is no way to dynamically add the <alternatives> in beans.xml. This will only get added in CDI-1.1 via the ProcessModule event.

        Show
        Mark Struberg added a comment - fixed. It's not fully usable in CDI-1.0 because there is no way to dynamically add the <alternatives> in beans.xml. This will only get added in CDI-1.1 via the ProcessModule event.

          People

          • Assignee:
            Mark Struberg
            Reporter:
            Gerhard Petracek
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development