6 Replies Latest reply on Apr 19, 2012 3:33 PM by Ronaldo Campos

    Fire a event inside a determined scope

    Ronaldo Campos Newbie

      Is there some way I can fire an event, but only observers that are in the same scope catch it?

       

      Exemple:

       

      I am in a conversation cid=1, and at some point I fire an event:

       

      createEvent.fire(new DetailChangeEvent("Some description"))
      

       

      Then I have a observer:

       

      public void changeNotifier(@Observes DetailChangeEvent event){
             log.info("Detail changed!");
      }
      

       

      But I want that only the components that are in the same conversation (cid=1) catch this event and notify it! Is is possible using some Weld or Solder functionality?

       

      Thanks in advance.