public class PushCDIExtension extends Object implements javax.enterprise.inject.spi.Extension
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(javax.enterprise.inject.spi.AfterBeanDiscovery event,
javax.enterprise.inject.spi.BeanManager beanManager)
Register observer method
PushObserverMethod for each Push annotation found in annotation scanning. |
void |
processInjectionTarget(javax.enterprise.inject.spi.ProcessInjectionTarget<?> pit)
Scans all the injection points on found injection targets for
Push annotations |
public void processInjectionTarget(@Observes javax.enterprise.inject.spi.ProcessInjectionTarget<?> pit)
Push
annotationspublic void afterBeanDiscovery(@Observes javax.enterprise.inject.spi.AfterBeanDiscovery event, javax.enterprise.inject.spi.BeanManager beanManager)
PushObserverMethod
for each Push
annotation found in annotation scanning.event
- beanManager
- Copyright © 2015 JBoss by Red Hat. All Rights Reserved.