*
* References to {@link TopicsContext} and {@link TopicKeyResolver} (needed for {@link TopicKey} resolution) are done
* through {@link BeanManager}.
*/
public void notify(Object payload) {
TopicsContext topicsContext = getBeanReference(TopicsContext.class);
TopicKeyResolver topicKeyResolver = getBeanReference(TopicKeyResolver.class);
TopicKey topicKey = topicKeyResolver.resolveTopicKey(pushAnnotation);
try {
topicsContext.publish(topicKey, payload);
} catch (MessageException e) {
throw new PushCDIMessageException("Message wasn't successfully deliver", e);
}
}