public interface Event<T>
@Inject
private Event<MyEvent> myEvent;
public void listen(@Observes OtherEvent otherEvent) {
// do something..
myEvent.fire(new MyEvent());
// do something..
}
Modifier and Type | Method and Description |
---|---|
void |
fire(T event) |
void fire(T event)
Copyright © 2016 JBoss by Red Hat. All rights reserved.