Errai 3.0.1-SNAPSHOT

org.jboss.errai.enterprise.client.cdi
Class AbstractCDIEventCallback<T>

java.lang.Object
  extended by org.jboss.errai.enterprise.client.cdi.AbstractCDIEventCallback<T>
All Implemented Interfaces:
MessageCallback

public abstract class AbstractCDIEventCallback<T>
extends Object
implements MessageCallback

Author:
Christian Sadilek , Mike Brock

Field Summary
protected  Set<String> qualifierSet
          The qualifiers a message must contain to be propagated.
 
Constructor Summary
AbstractCDIEventCallback()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

qualifierSet

protected final Set<String> qualifierSet
The qualifiers a message must contain to be propagated.

Constructor Detail

AbstractCDIEventCallback

public AbstractCDIEventCallback()
Method Detail

getQualifiers

public Set<String> getQualifiers()

callback

public final void callback(Message message)
Description copied from interface: MessageCallback
Called by the Message Bus every time it processes a message with the subject this callback is registered for.

Specified by:
callback in interface MessageCallback
Parameters:
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.

isDefault

protected boolean isDefault()

fireEvent

protected abstract void fireEvent(T event)

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.