T - The type of event being wrappedpublic class EventImpl<T> extends AbstractFacade<T,Event<T>> implements Event<T>, java.io.Serializable
Event,
Serialized FormAbstractFacade.AbstractFacadeSerializationProxy<T,X>| Modifier and Type | Method and Description |
|---|---|
void |
fire(T event)
Fires an event with the specified qualifiers and notifies observers.
|
protected java.lang.reflect.Type |
getEventType(java.lang.Class<?> runtimeType) |
static <E> EventImpl<E> |
of(InjectionPoint injectionPoint,
BeanManagerImpl beanManager) |
Event<T> |
select(java.lang.annotation.Annotation... qualifiers)
Obtains a child Event for the given additional required qualifiers.
|
<U extends T> |
select(java.lang.Class<U> subtype,
java.lang.annotation.Annotation... qualifiers)
Obtains a child Event for the given required type and additional required qualifiers.
|
<U extends T> |
select(TypeLiteral<U> subtype,
java.lang.annotation.Annotation... qualifiers)
Obtains a child Event for the given required type and additional required qualifiers.
|
java.lang.String |
toString()
Gets a string representation
|
equals, getBeanManager, getCreationalContext, getFacadeType, getInjectionPoint, getQualifiers, getType, hashCodepublic static <E> EventImpl<E> of(InjectionPoint injectionPoint, BeanManagerImpl beanManager)
public java.lang.String toString()
toString in class java.lang.Objectpublic void fire(T event)
EventFires an event with the specified qualifiers and notifies observers.
public Event<T> select(java.lang.annotation.Annotation... qualifiers)
EventObtains a child Event for the given additional required qualifiers.
public <U extends T> Event<U> select(java.lang.Class<U> subtype, java.lang.annotation.Annotation... qualifiers)
EventObtains a child Event for the given required type and additional required qualifiers.
public <U extends T> Event<U> select(TypeLiteral<U> subtype, java.lang.annotation.Annotation... qualifiers)
EventObtains a child Event for the given required type and additional required qualifiers.
select in interface Event<T>U - the specified typesubtype - a TypeLiteral representing the specified typequalifiers - the additional specified qualifiersprotected java.lang.reflect.Type getEventType(java.lang.Class<?> runtimeType)
Copyright © 2015. All Rights Reserved.