Created
June 25, 2013 19:03
-
-
Save Snugglepantz/5861371 to your computer and use it in GitHub Desktop.
Fire Event
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
import javax.enterprise.event.Event; | |
import javax.inject.Inject; | |
/** | |
* | |
* @author jhoffma5 | |
*/ | |
public class FireEvent { | |
@Inject | |
@Qualifier | |
private Event<String> event; | |
public void someMethod() { | |
String eventString = "Event"; | |
event.fire(eventString); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment