open fun <T : Any> register(clazz: Class<T>, service: T): MessageConsumer<JsonObject>
Registers a service on the event bus.
clazz - the service class (interface)
- the type of the service interface
Return
the consumer used to unregister the service