If I try to inject a StreamsBuilder
in my Kafka Streams based Spring Cloud Stream app, then the start of the app fails as no instance can be found. Is there a way to access the current instance from within the class or the function?
@Configuration
class StreamConfiguration {
@Bean
fun stream() = {}
}