Class KafkaStreamsDefaultConfiguration
- java.lang.Object
-
- org.springframework.kafka.annotation.KafkaStreamsDefaultConfiguration
-
@Configuration(proxyBeanMethods=false) public class KafkaStreamsDefaultConfiguration extends java.lang.Object
@Configuration
class that registers aStreamsBuilderFactoryBean
ifStreamsConfig
with the nameDEFAULT_STREAMS_CONFIG_BEAN_NAME
is present in the application context. Otherwise aUnsatisfiedDependencyException
is thrown.This configuration class is automatically imported when using the @
EnableKafkaStreams
annotation. SeeEnableKafkaStreams
Javadoc for complete usage.- Since:
- 1.1.4
- Author:
- Artem Bilan, Gary Russell
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_STREAMS_BUILDER_BEAN_NAME
The bean name for auto-configured defaultStreamsBuilderFactoryBean
.static java.lang.String
DEFAULT_STREAMS_CONFIG_BEAN_NAME
The bean name for theStreamsConfig
to be used for the defaultStreamsBuilderFactoryBean
bean definition.
-
Constructor Summary
Constructors Constructor Description KafkaStreamsDefaultConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamsBuilderFactoryBean
defaultKafkaStreamsBuilder(org.springframework.beans.factory.ObjectProvider<KafkaStreamsConfiguration> streamsConfigProvider, org.springframework.beans.factory.ObjectProvider<StreamsBuilderFactoryBeanConfigurer> configurerProvider)
Bean for the defaultStreamsBuilderFactoryBean
.
-
-
-
Field Detail
-
DEFAULT_STREAMS_CONFIG_BEAN_NAME
public static final java.lang.String DEFAULT_STREAMS_CONFIG_BEAN_NAME
The bean name for theStreamsConfig
to be used for the defaultStreamsBuilderFactoryBean
bean definition.- See Also:
- Constant Field Values
-
DEFAULT_STREAMS_BUILDER_BEAN_NAME
public static final java.lang.String DEFAULT_STREAMS_BUILDER_BEAN_NAME
The bean name for auto-configured defaultStreamsBuilderFactoryBean
.- See Also:
- Constant Field Values
-
-
Method Detail
-
defaultKafkaStreamsBuilder
@Bean(name="defaultKafkaStreamsBuilder") public StreamsBuilderFactoryBean defaultKafkaStreamsBuilder(@Qualifier("defaultKafkaStreamsConfig") org.springframework.beans.factory.ObjectProvider<KafkaStreamsConfiguration> streamsConfigProvider, org.springframework.beans.factory.ObjectProvider<StreamsBuilderFactoryBeanConfigurer> configurerProvider)
Bean for the defaultStreamsBuilderFactoryBean
.- Parameters:
streamsConfigProvider
- the streams config.configurerProvider
- the configurer.- Returns:
- the factory bean.
-
-