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, transactionPhaseDEFAULT_PRIORITY| Modifier | Constructor and Description |
|---|---|
protected |
ExtensionObserverMethodImpl(EnhancedAnnotatedMethod<T,? super X> observer,
RIBean<X> declaringBean,
BeanManagerImpl manager) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?,?> eventParameter) |
boolean |
equals(Object obj) |
protected Object |
getReceiver(CreationalContext<X> ctx) |
Collection<Class<? extends Annotation>> |
getRequiredAnnotations() |
Collection<Class<? extends Annotation>> |
getRequiredScopeAnnotations() |
int |
hashCode() |
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) |
createId, getBeanClass, getDeclaringBean, getId, getInjectionPoints, getMethod, getNewInjectionPoints, getObservedQualifiers, getObservedType, getPriority, getReception, getTransactionPhase, initialize, isEventMetadataRequired, notify, sendEvent, toStringprotected 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)
ObserverMethodImplpreNotify 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)
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.