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 @HvlEnableEventAuthority @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 Details

    • HvlEventConfiguration

      public HvlEventConfiguration(HvlEventTopicProperties eventTopicProperties)
      Instantiates a new HvlEventConfiguration.
      Parameters:
      eventTopicProperties - the event topic properties
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.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