public class ExtensionObserverMethodImpl<T,X> extends ObserverMethodImpl<T,X>
ObserverMethod
used for events delivered to extensions. An event can obtain an information about the
observer method and receiver used for event delivery using AbstractContainerEvent.getObserverMethod()
or
AbstractContainerEvent.getReceiver()
, respectively. 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 |
---|---|
protected void |
checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?,?> eventParameter) |
protected Object |
getReceiver(CreationalContext<?> ctx) |
Collection<Class<? extends Annotation>> |
getRequiredTypeAnnotations() |
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, equals, getBeanClass, getDeclaringBean, getId, getInjectionPoints, getMethod, getNewInjectionPoints, getObservedQualifiers, getObservedType, getReception, getTransactionPhase, hashCode, initialize, 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<?> 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>> getRequiredTypeAnnotations()
Copyright © 2013 Seam Framework. All Rights Reserved.