Created
November 26, 2013 05:14
-
-
Save goyuninfo/7653784 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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