public abstract class AbstractCDIEventCallback<T> extends Object implements MessageCallback
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
qualifierSet
The qualifiers a message must contain to be propagated.
|
Constructor and Description |
---|
AbstractCDIEventCallback() |
Modifier and Type | Method and Description |
---|---|
void |
callback(Message message)
Called by the Message Bus every time it processes a message with the
subject this callback is registered for.
|
protected abstract void |
fireEvent(T event) |
Set<String> |
getQualifiers() |
protected boolean |
isDefault() |
public final void callback(Message message)
MessageCallback
callback
in interface MessageCallback
message
- The message on the bus. Avoid making changes to this object,
because it will continue to be reused by the framework and the
same Message instance will be passed to other callbacks.protected boolean isDefault()
protected abstract void fireEvent(T event)
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.