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

Listening to AfterBeanDiscovery suppresses @Decorator registration as a side effect

    XMLWordPrintableJSON

Details

    Description

      In the attached demo project, the listener method Main.afterBeanDiscovery() suppresses the configured @Decorator beans. As a result, when running the standalone demo, the output is just:

      Hello world!
      

      instead of the expected:

      ---------- BEGIN PRINT ----------
      Hello world!
      ----------  END PRINT  ----------
      

      After commenting out the listener method, the expected output is produced again when running the Main class com.company.mavenproject1.boot.BootWebBeans.

      Attachments

        1. mavenproject1.zip
          12 kB
          Christian Schlichtherle

        Activity

          People

            struberg Mark Struberg
            christians Christian Schlichtherle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: