public class PushCDIExtension extends Object
CDI Extension for observing CDI events and delegating events with their payload to Push message bus.
This extension was introduced as workaround for feature missing in CDI 1.0 (CDI-36).
Thus this extension listens on injection target scanning process for all Push annotations defined on injection points
and then registers observer methods designed for one specific topic. As consequence is that this implementation can't be used
for observing dynamically created topic names.
| Constructor and Description |
|---|
PushCDIExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterBeanDiscovery(AfterBeanDiscovery event,
BeanManager beanManager)
Register observer method
PushCDIExtension.PushObserverMethod for each Push annotation found in annotation scanning. |
void |
processInjectionTarget(<any> pit)
Scans all the injection points on found injection targets for
Push annotations |
public void processInjectionTarget(<any> pit)
Push annotationspublic void afterBeanDiscovery(AfterBeanDiscovery event,
BeanManager beanManager)
PushCDIExtension.PushObserverMethod for each Push annotation found in annotation scanning.event - beanManager - Copyright © 2019 JBoss by Red Hat. All Rights Reserved.