com.caucho.config.event
Class EventManager

java.lang.Object
  extended by com.caucho.config.event.EventManager

@Module
public class EventManager
extends java.lang.Object

Internal implementation for a Bean


Constructor Summary
EventManager(InjectManager cdiManager)
           
 
Method Summary
 void addExtensionObserver(ObserverMethod<?> observer, BaseType eventBaseType, java.lang.annotation.Annotation... bindings)
          Registers an event observer
<X,Z> void
addObserver(Bean<X> bean, AnnotatedMethod<Z> beanMethod)
           
 void addObserver(ObserverMethod<?> observer)
          Registers an event observer
 void addObserver(ObserverMethod<?> observer, BaseType eventBaseType, java.lang.annotation.Annotation... bindings)
          Registers an event observer
 void addObserver(ObserverMethod<?> observer, java.lang.reflect.Type type, java.lang.annotation.Annotation... bindings)
          Registers an event observer
 void fillObserverMethodList(java.util.Set<ObserverMethod<?>> list, BaseType type, java.lang.annotation.Annotation[] qualifiers)
           
static
<Z> int
findObserverAnnotation(AnnotatedMethod<Z> 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(ObserverMethod<?> observer)
          Removes an event observer
<T> java.util.Set<ObserverMethod<? super T>>
resolveObserverMethods(T event, java.lang.annotation.Annotation... qualifiers)
           
 java.lang.String toString()
          Registers an event observer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventManager

public EventManager(InjectManager cdiManager)
Method Detail

addObserver

public <X,Z> void addObserver(Bean<X> bean,
                              AnnotatedMethod<Z> beanMethod)

findObserverAnnotation

public static <Z> int findObserverAnnotation(AnnotatedMethod<Z> method)

fireEvent

public void fireEvent(java.lang.Object event,
                      java.lang.annotation.Annotation... qualifiers)

resolveObserverMethods

public <T> java.util.Set<ObserverMethod<? super T>> resolveObserverMethods(T event,
                                                                           java.lang.annotation.Annotation... qualifiers)

fillObserverMethodList

public void fillObserverMethodList(java.util.Set<ObserverMethod<?>> list,
                                   BaseType type,
                                   java.lang.annotation.Annotation[] qualifiers)

fireExtensionEvent

public void fireExtensionEvent(java.lang.Object event,
                               java.lang.annotation.Annotation... qualifiers)

fireExtensionEvent

@Module
public void fireExtensionEvent(java.lang.Object event,
                                      BaseType eventType,
                                      java.lang.annotation.Annotation... qualifiers)

addObserver

public void addObserver(ObserverMethod<?> observer)
Registers an event observer

Parameters:
observer - the observer object
bindings - the binding set for the event

addObserver

public void addObserver(ObserverMethod<?> observer,
                        java.lang.reflect.Type type,
                        java.lang.annotation.Annotation... bindings)
Registers an event observer

Parameters:
observer - the observer object
bindings - the binding set for the event

addObserver

public void addObserver(ObserverMethod<?> observer,
                        BaseType eventBaseType,
                        java.lang.annotation.Annotation... bindings)
Registers an event observer

Parameters:
observer - the observer object
bindings - the binding set for the event

addExtensionObserver

public void addExtensionObserver(ObserverMethod<?> observer,
                                 BaseType eventBaseType,
                                 java.lang.annotation.Annotation... bindings)
Registers an event observer

Parameters:
observer - the observer object
bindings - the binding set for the event

removeObserver

public void removeObserver(ObserverMethod<?> observer)
Removes an event observer

Parameters:
observer - the observer object
eventType - the type of event to listen for
bindings - the binding set for the event

toString

public java.lang.String toString()
Registers an event observer

Overrides:
toString in class java.lang.Object
Parameters:
observerMethod - the observer method