BrokerConfigProvider

class BrokerConfigProvider(logger: Logger? = null) : Provider<Map<String, KClass<out Any>>>

Guice provider for Broker configuration classes

Broker configuration classes do not have a set interface, so we scan for the BrokerConfig annotation. If found we use the associated brokerId to register the class to a specific Broker type.

Constructors

Link copied to clipboard
constructor(logger: Logger? = null)

Functions

Link copied to clipboard
open override fun get(): Map<String, KClass<out Any>>

Scans the classpath for classes annotated with BrokerConfig and returns a map of brokerId to class