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|
|Modifier and Type||Method and Description|
Register observer method
Scans all the injection points on found injection targets for
public void processInjectionTarget(@Observes javax.enterprise.inject.spi.ProcessInjectionTarget<?> pit)
public void afterBeanDiscovery(@Observes javax.enterprise.inject.spi.AfterBeanDiscovery event, javax.enterprise.inject.spi.BeanManager beanManager)
Pushannotation found in annotation scanning.
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.