@Module public class EventManager extends java.lang.Object
| Constructor and Description |
|---|
EventManager(InjectManager cdiManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtensionObserver(<any> observer,
BaseType eventBaseType,
java.lang.annotation.Annotation... bindings)
Registers an event observer
|
void |
addObserver(<any> observer)
Registers an event observer
|
<X,Z> void |
addObserver(<any> bean,
<any> beanMethod) |
void |
addObserver(<any> observer,
BaseType eventBaseType,
java.lang.annotation.Annotation... bindings)
Registers an event observer
|
void |
addObserver(<any> observer,
java.lang.reflect.Type type,
java.lang.annotation.Annotation... bindings)
Registers an event observer
|
void |
fillObserverMethodList(java.util.Set<<any>> list,
BaseType type,
java.lang.annotation.Annotation[] qualifiers) |
static <Z> int |
findObserverAnnotation(<any> method) |
void |
fireEvent(java.lang.Object event,
java.lang.annotation.Annotation... qualifiers) |
void |
fireExtensionEvent(java.lang.Object event,
java.lang.annotation.Annotation... qualifiers) |
void |
fireExtensionEvent(java.lang.Object event,
BaseType eventType,
java.lang.annotation.Annotation... qualifiers) |
void |
removeObserver(<any> observer)
Removes an event observer
|
<T> java.util.Set<<any>> |
resolveObserverMethods(T event,
java.lang.annotation.Annotation... qualifiers) |
java.lang.String |
toString()
Registers an event observer
|
public EventManager(InjectManager cdiManager)
public <X,Z> void addObserver(<any> bean,
<any> beanMethod)
public static <Z> int findObserverAnnotation(<any> method)
public void fireEvent(java.lang.Object event,
java.lang.annotation.Annotation... qualifiers)
public <T> java.util.Set<<any>> resolveObserverMethods(T event,
java.lang.annotation.Annotation... qualifiers)
public void fillObserverMethodList(java.util.Set<<any>> list,
BaseType type,
java.lang.annotation.Annotation[] qualifiers)
public void fireExtensionEvent(java.lang.Object event,
java.lang.annotation.Annotation... qualifiers)
@Module public void fireExtensionEvent(java.lang.Object event, BaseType eventType, java.lang.annotation.Annotation... qualifiers)
public void addObserver(<any> observer)
observer - the observer objectbindings - the binding set for the eventpublic void addObserver(<any> observer,
java.lang.reflect.Type type,
java.lang.annotation.Annotation... bindings)
observer - the observer objectbindings - the binding set for the eventpublic void addObserver(<any> observer,
BaseType eventBaseType,
java.lang.annotation.Annotation... bindings)
observer - the observer objectbindings - the binding set for the eventpublic void addExtensionObserver(<any> observer,
BaseType eventBaseType,
java.lang.annotation.Annotation... bindings)
observer - the observer objectbindings - the binding set for the eventpublic void removeObserver(<any> observer)
observer - the observer objecteventType - the type of event to listen forbindings - the binding set for the eventpublic java.lang.String toString()
toString in class java.lang.ObjectobserverMethod - the observer method