@Module public class EventImpl<T> extends java.lang.Object implements Event<T>, java.io.Serializable
Constructor and Description |
---|
EventImpl(BeanManager manager,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] bindings) |
Modifier and Type | Method and Description |
---|---|
void |
fire(T event)
Fires an event with the Event object's bindings.
|
Event<T> |
select(java.lang.annotation.Annotation... bindings)
Adds the current set of qualifiers, returning a new Event object.
|
<U extends T> |
select(java.lang.Class<U> subtype,
java.lang.annotation.Annotation... bindings)
Adds the current set of bindings, returning a new Event object.
|
<U extends T> |
select(TypeLiteral<U> subtype,
java.lang.annotation.Annotation... bindings)
Adds the current set of qualifiers, returning a new Event object.
|
java.lang.String |
toString() |
public EventImpl(BeanManager manager, java.lang.reflect.Type type, java.lang.annotation.Annotation[] bindings)
public void fire(T event)
Event
public Event<T> select(java.lang.annotation.Annotation... bindings)
Event
public <U extends T> Event<U> select(java.lang.Class<U> subtype, java.lang.annotation.Annotation... bindings)
Event
public <U extends T> Event<U> select(TypeLiteral<U> subtype, java.lang.annotation.Annotation... bindings)
Event
public java.lang.String toString()
toString
in class java.lang.Object