Register a handler that will handle connections from a particular WonderlandClient type. This listener will be notified of all connections and messages from listeners of the given type.
This handler will be notified when a client session, which is connected via the WonderlandProtocol, connects a new WonderlandClient using the WonderlandSession.connect()
method. It will be notified of all messages sent using that client type.
The Handler will be stored in the Darkstar data store, so it must be either Serializable or a ManagedObject. If a handler is a ManagedObject, only a single copy of the handler will exist, and all messages will be forwarded to this object. If the handler is not a managed object, a separate copy of the handler will be created in each WonderlandSession that connects a client of the given type. It is recommended that handlers that expect a large number messages be Serializable.
This is identical to calling WonderlandSessionListener.registerClientHandler()
.
@param handler the handler to handle messages from the given clienttype