public class ObserverMethodImpl<X,T> extends AbstractObserverMethod<T>
Constructor and Description |
---|
ObserverMethodImpl(InjectManager beanManager,
Bean<X> bean,
AnnotatedMethod<X> method,
java.lang.reflect.Type type,
java.util.Set<java.lang.annotation.Annotation> qualifiers) |
Modifier and Type | Method and Description |
---|---|
AnnotatedMethod<X> |
getAnnotatedMethod()
Returns the annotated method
|
java.lang.Class<X> |
getBeanClass() |
protected java.lang.Object[] |
getEventArguments(java.lang.Object event,
CreationalContextImpl<?> parentEnv) |
protected X |
getExistsInstance() |
java.util.Set<java.lang.annotation.Annotation> |
getObservedQualifiers()
Returns the observed event bindings
|
java.lang.reflect.Type |
getObservedType()
Returns the observed event type
|
Bean<X> |
getParentBean()
Returns the declaring bean
|
Reception |
getReception() |
TransactionPhase |
getTransactionPhase() |
void |
notify(T event)
Send the event notification.
|
protected void |
notifyImpl(T event) |
java.lang.String |
toString() |
public ObserverMethodImpl(InjectManager beanManager, Bean<X> bean, AnnotatedMethod<X> method, java.lang.reflect.Type type, java.util.Set<java.lang.annotation.Annotation> qualifiers)
public AnnotatedMethod<X> getAnnotatedMethod()
public java.lang.Class<X> getBeanClass()
getBeanClass
in interface ObserverMethod<T>
getBeanClass
in class AbstractObserverMethod<T>
public java.lang.reflect.Type getObservedType()
getObservedType
in interface ObserverMethod<T>
getObservedType
in class AbstractObserverMethod<T>
public java.util.Set<java.lang.annotation.Annotation> getObservedQualifiers()
getObservedQualifiers
in interface ObserverMethod<T>
getObservedQualifiers
in class AbstractObserverMethod<T>
public void notify(T event)
notify
in interface ObserverMethod<T>
notify
in class AbstractObserverMethod<T>
protected void notifyImpl(T event)
protected X getExistsInstance()
protected java.lang.Object[] getEventArguments(java.lang.Object event, CreationalContextImpl<?> parentEnv)
public Reception getReception()
getReception
in interface ObserverMethod<T>
getReception
in class AbstractObserverMethod<T>
public TransactionPhase getTransactionPhase()
getTransactionPhase
in interface ObserverMethod<T>
getTransactionPhase
in class AbstractObserverMethod<T>
public java.lang.String toString()
toString
in class java.lang.Object