Package com.jme3.network.base
Class MessageListenerRegistry<S>
java.lang.Object
com.jme3.network.base.MessageListenerRegistry<S>
- All Implemented Interfaces:
MessageListener<S>
Keeps track of message listeners registered to specific
types or to any type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessageListener
(MessageListener<? super S> listener) void
addMessageListener
(MessageListener<? super S> listener, Class... classes) protected List<MessageListener<? super S>>
getListeners
(Class c, boolean create) void
messageReceived
(S source, Message m) void
removeMessageListener
(MessageListener<? super S> listener) void
removeMessageListener
(MessageListener<? super S> listener, Class... classes)
-
Constructor Details
-
MessageListenerRegistry
public MessageListenerRegistry()
-
-
Method Details
-
messageReceived
- Specified by:
messageReceived
in interfaceMessageListener<S>
-
getListeners
-
addMessageListener
-
removeMessageListener
-
addMessageListener
-
removeMessageListener
-