Class HvlEventConfiguration
java.lang.Object
tr.com.havelsan.javarch.configuration.HvlBaseConfiguration
tr.com.havelsan.javarch.oauth.event.starter.configuration.HvlEventConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@Configuration
@HvlEnableOAuthJpaDataProvider
@HvlEnableEventProfile
@HvlEnableEventProxy
@HvlEnableEventRole
@HvlEnableEventUser
@ComponentScan(basePackages={"tr.com.havelsan.javarch.oauth.event.starter.consumer","tr.com.havelsan.javarch.oauth.event.starter.notifier"})
@EnableConfigurationProperties({HvlEventTopicProperties.class,HvlEventKeyProperties.class})
public class HvlEventConfiguration
extends tr.com.havelsan.javarch.configuration.HvlBaseConfiguration
implements org.springframework.beans.factory.InitializingBean
Configuration for event.
-
Constructor Summary
ConstructorDescriptionHvlEventConfiguration
(HvlEventTopicProperties eventTopicProperties) Instantiates a new HvlEventConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.springframework.boot.autoconfigure.kafka.DefaultKafkaProducerFactoryCustomizer
Kafka producer factory customizer default kafka producer factory customizer.org.apache.kafka.clients.admin.NewTopic
Notification mail topic new topic.Methods inherited from class tr.com.havelsan.javarch.configuration.HvlBaseConfiguration
info
-
Constructor Details
-
HvlEventConfiguration
Instantiates a new HvlEventConfiguration.- Parameters:
eventTopicProperties
- the event topic properties
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
notificationMailTopic
@Bean public org.apache.kafka.clients.admin.NewTopic notificationMailTopic()Notification mail topic new topic.- Returns:
- the new topic
-
kafkaProducerFactoryCustomizer
@Bean public org.springframework.boot.autoconfigure.kafka.DefaultKafkaProducerFactoryCustomizer kafkaProducerFactoryCustomizer()Kafka producer factory customizer default kafka producer factory customizer.- Returns:
- the default kafka producer factory customizer
-