abstract fun <T : Any> registerDefaultCodec(clazz: Class<T>, codec: MessageCodec<T, *>): EventBus
Register a default message codec.
You can register a message codec if you want to send any non standard message across the event bus. E.g. you might want to send POJOs directly across the event bus.
Default message codecs will be used to serialise any messages of the specified type on the event bus without the codec having to be specified in the delivery options.
clazz - the class for which to use this codec
codec - the message codec to register
Return
a reference to this, so the API can be used fluently