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

Rename SeContainerInitializer.addInterceptors()/addDecorators()/addAlternatives()/addAlternativeStereotypes() and clarify the purpose

XMLWordPrintable

    • Icon: Clarification Clarification
    • Resolution: Done
    • Icon: Major Major
    • 2.0 .Final
    • None
    • None
    • None

      These methods should not add any class to the set of bean classes for the synthetic bean archive. The purpose is solely to compensate the absence of the beans.xml descriptor.

      The propsal is to rename:

      • addInterceptors() -> enableInterceptors()
      • addDecorators() -> enableDecorators()
      • addAlternatives() -> selectAlternatives()
      • addAlternativeStereotypes() -> selectAlternativeStereotypes()

      The new names correspond to the spec wording (see for example 5.1.1. Declaring selected alternatives).

              mkouba@redhat.com Martin Kouba
              mkouba@redhat.com Martin Kouba
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: