Skip to content

Instantly share code, notes, and snippets.

@goyuninfo
Created November 26, 2013 05:14
Show Gist options
  • Save goyuninfo/7653784 to your computer and use it in GitHub Desktop.
Save goyuninfo/7653784 to your computer and use it in GitHub Desktop.
package ca.i88.sample.pattern.observer.ee;
import java.util.Date;
import javax.enterprise.event.Event;
import javax.inject.Inject;
import javax.inject.Named;
/**
*
* @author it.i88.ca
*/
@Named
public class ObserverTest {
@Inject
Event<I88caEvent> event;
public void fire() {
event.fire(new I88caEvent("event fired at: " + new Date()));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment