6 Replies Latest reply on Feb 2, 2010 10:08 AM by Pieter Martin

    SE, Qualifiers and Event not working as expected

    Pieter Martin Novice


      I am using WELD trunk and running a standalone se app.

      When I inject a qualified event the observers fire regardless of whether observe methods qualifiers.

           @Inject @EventQualifier1
           private Event<EventTest> eventTest;     
           public void start(@Observes ContainerInitialized event) {
                eventTest.fire(new EventTest());
                logger.info("shutting producer down");
           public void observeEventTest(@Observes @EventQualifier2 EventTest eventTest) {

      The injected event is qualified with @EventQualifier1 and the observe method with @EventQualifier2, yet the observe method still fires. In fact the observe method's qualifiers make no difference, it always fires.

      Is this a bug?