public class ExtensionObserverMethodImpl<T,X> extends ObserverMethodImpl<T,X> implements ContainerLifecycleEventObserverMethod<T>
ObserverMethod used for events delivered to extensions.
The observer method does not require contexts to be active.beanManager, declaringBean, ID_PREFIX, ID_SEPARATOR, observerMethod, SPECIAL_PARAM_MARKERS, transactionPhase| Modifier | Constructor and Description |
|---|---|
protected |
ExtensionObserverMethodImpl(EnhancedAnnotatedMethod<T,? super X> observer,
RIBean<X> declaringBean,
BeanManagerImpl manager,
boolean isAsync) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createTypeId(RIBean<?> declaringBean) |
boolean |
equals(Object obj) |
protected Object |
getReceiver(javax.enterprise.context.spi.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,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Note that
CreationalContext.release() is not invoked within this method. |
createId, getBeanClass, getDeclaringBean, getEventParameter, getId, getInjectionPoints, getMethod, getObservedQualifiers, getObservedType, getPriority, getReception, getTransactionPhase, initialize, isAsync, isEventMetadataRequired, notify, sendEvent, toStringprotected ExtensionObserverMethodImpl(EnhancedAnnotatedMethod<T,? super X> observer, RIBean<X> declaringBean, BeanManagerImpl manager, boolean isAsync)
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(javax.enterprise.context.spi.CreationalContext<X> ctx)
getReceiver in class ObserverMethodImpl<T,X>protected void sendEvent(T event, Object receiver, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
ObserverMethodImplCreationalContext.release() is not invoked within this method.sendEvent in class ObserverMethodImpl<T,X>protected String createTypeId(RIBean<?> declaringBean)
createTypeId in class ObserverMethodImpl<T,X>public Collection<Class<? extends Annotation>> getRequiredAnnotations()
getRequiredAnnotations in interface ContainerLifecycleEventObserverMethod<T>WithAnnotationspublic 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 © 2017. All rights reserved.