Skip to content

Commit

Permalink
#400 Adopted KafkaHandler constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
mcweba committed Jan 6, 2022
1 parent 138a5b4 commit ab08c2f
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,23 @@ public KafkaHandler(ConfigurationResourceManager configurationResourceManager, K
public KafkaHandler(ConfigurationResourceManager configurationResourceManager, KafkaMessageValidator kafkaMessageValidator,
KafkaProducerRepository repository, KafkaMessageSender kafkaMessageSender, String configResourceUri,
String streamingPath) {
super(configurationResourceManager, configResourceUri, "gateleen_kafka_topic_configuration_schema");
this.kafkaMessageValidator = kafkaMessageValidator;
this.repository = repository;
this.kafkaMessageSender = kafkaMessageSender;
this.streamingPath = streamingPath;
this.properties = new HashMap<>();

this.topicExtractor = new KafkaTopicExtractor(streamingPath);
this(configurationResourceManager, kafkaMessageValidator, repository, kafkaMessageSender,
configResourceUri, streamingPath, new HashMap<>());
}

public KafkaHandler(ConfigurationResourceManager configurationResourceManager, KafkaProducerRepository repository,
KafkaMessageSender kafkaMessageSender, String configResourceUri, String streamingPath, Map<String, Object> properties) {

this(configurationResourceManager, null, repository, kafkaMessageSender,
configResourceUri, streamingPath, properties);
}

public KafkaHandler(ConfigurationResourceManager configurationResourceManager, KafkaMessageValidator kafkaMessageValidator, KafkaProducerRepository repository,
KafkaMessageSender kafkaMessageSender, String configResourceUri, String streamingPath, Map<String, Object> properties) {

super(configurationResourceManager, configResourceUri, "gateleen_kafka_topic_configuration_schema");
this.repository = repository;
this.kafkaMessageValidator = kafkaMessageValidator;
this.kafkaMessageSender = kafkaMessageSender;
this.streamingPath = streamingPath;
this.properties = properties;
Expand Down

0 comments on commit ab08c2f

Please sign in to comment.