public class ExtensionObserverMethodImpl<T,X> extends ObserverMethodImpl<T,X>
ObserverMethod
used for events delivered to extensions.
The observer method does not require contexts to be active.beanManager, declaringBean, ID_PREFIX, ID_SEPARATOR, observerMethod, transactionPhase
Modifier | Constructor and Description |
---|---|
protected |
ExtensionObserverMethodImpl(EnhancedAnnotatedMethod<T,? super X> observer,
RIBean<X> declaringBean,
BeanManagerImpl manager) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
protected Object |
getReceiver(CreationalContext<X> ctx) |
Collection<Class<? extends Annotation>> |
getRequiredAnnotations() |
Collection<Class<? extends Annotation>> |
getRequiredScopeAnnotations() |
int |
hashCode() |
protected void |
checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?,?> eventParameter) |
protected MethodInjectionPoint<T,? super X> |
initMethodInjectionPoint(EnhancedAnnotatedMethod<T,? super X> observer,
RIBean<X> declaringBean,
BeanManagerImpl manager) |
protected Set<Class<? extends Annotation>> |
initRequiredTypeAnnotations(EnhancedAnnotatedMethod<T,? super X> observer) |
protected void |
postNotify(T event,
Object receiver) |
protected void |
preNotify(T event,
Object receiver)
Hooks allowing subclasses to perform additional logic just before and just after an event is delivered to an observer method.
|
protected void |
sendEvent(T event,
Object receiver,
CreationalContext<?> creationalContext)
Note that
CreationalContext.release() is not invoked within this method. |
createId, getBeanClass, getDeclaringBean, getId, getInjectionPoints, getMethod, getNewInjectionPoints, getObservedQualifiers, getObservedType, getReception, getTransactionPhase, initialize, isEventMetadataRequired, notify, sendEvent, toString
protected ExtensionObserverMethodImpl(EnhancedAnnotatedMethod<T,? super X> observer, RIBean<X> declaringBean, BeanManagerImpl manager)
protected Set<Class<? extends Annotation>> initRequiredTypeAnnotations(EnhancedAnnotatedMethod<T,? super X> observer)
protected void checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?,?> eventParameter)
checkRequiredTypeAnnotations
in class ObserverMethodImpl<T,X>
protected MethodInjectionPoint<T,? super X> initMethodInjectionPoint(EnhancedAnnotatedMethod<T,? super X> observer, RIBean<X> declaringBean, BeanManagerImpl manager)
initMethodInjectionPoint
in class ObserverMethodImpl<T,X>
protected void preNotify(T event, Object receiver)
ObserverMethodImpl
preNotify
in class ObserverMethodImpl<T,X>
protected void postNotify(T event, Object receiver)
postNotify
in class ObserverMethodImpl<T,X>
protected Object getReceiver(CreationalContext<X> ctx)
getReceiver
in class ObserverMethodImpl<T,X>
protected void sendEvent(T event, Object receiver, CreationalContext<?> creationalContext)
ObserverMethodImpl
CreationalContext.release()
is not invoked within this method.sendEvent
in class ObserverMethodImpl<T,X>
public Collection<Class<? extends Annotation>> getRequiredAnnotations()
public Collection<Class<? extends Annotation>> getRequiredScopeAnnotations()
public boolean equals(Object obj)
equals
in class ObserverMethodImpl<T,X>
public int hashCode()
hashCode
in class ObserverMethodImpl<T,X>
Copyright © 2015. All Rights Reserved.