5 Replies Latest reply on Aug 16, 2011 10:49 AM by JEE 4 Hire

    How to initialize event source

    JEE 4 Hire Newbie
      In the case that I have an object that I cannot use @Inject to initialize an event source,

      import javax.enterprise.event.Event;

      public class Foo {
        @Inject @Update
        private Event<String> updateEventSource;
        ...
      }

      what alternative can I use?

      Is there a factory in Weld?