5 Replies Latest reply on Aug 16, 2011 10:49 AM by jee4hire

    How to initialize event source

    jee4hire
      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?