public class MessageListenerRegistry<S> extends java.lang.Object implements MessageListener<S>
Constructor and Description |
---|
MessageListenerRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addMessageListener(MessageListener<? super S> listener) |
void |
addMessageListener(MessageListener<? super S> listener,
java.lang.Class... classes) |
protected java.util.List<MessageListener<? super S>> |
getListeners(java.lang.Class c,
boolean create) |
void |
messageReceived(S source,
Message m) |
void |
removeMessageListener(MessageListener<? super S> listener) |
void |
removeMessageListener(MessageListener<? super S> listener,
java.lang.Class... classes) |
public void messageReceived(S source, Message m)
messageReceived
in interface MessageListener<S>
protected java.util.List<MessageListener<? super S>> getListeners(java.lang.Class c, boolean create)
public void addMessageListener(MessageListener<? super S> listener)
public void removeMessageListener(MessageListener<? super S> listener)
public void addMessageListener(MessageListener<? super S> listener, java.lang.Class... classes)
public void removeMessageListener(MessageListener<? super S> listener, java.lang.Class... classes)