Skip to content

Commit

Permalink
Merge pull request #2455 from fdelbrayelle/feat/issues/2109_kafka_module
Browse files Browse the repository at this point in the history
Migrate Kafka domain service to new module system
  • Loading branch information
pascalgrimaud authored Jul 13, 2022
2 parents cd4527e + abebdac commit 72cd3d4
Show file tree
Hide file tree
Showing 25 changed files with 375 additions and 869 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ private GeneratorAction() {}

public static final String REACT_CYPRESS = "react-cypress";

public static final String SPRINGBOOT_KAFKA = "springboot-kafka";
public static final String SPRINGBOOT_KAFKA_DUMMY_PRODUCER_CONSUMER = "springboot-kafka-dummy-producer-consumer";
public static final String SPRINGBOOT_KAFKA_AKHQ = "springboot-kafka-akhq";

public static final String SPRINGBOOT_PULSAR = "springboot-pulsar";

public static final String SPRINGBOOT_WEBFLUX_NETTY = "springboot-webflux-netty";
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import tech.jhipster.lite.module.infrastructure.primary.JHipsterModuleResource;

@Configuration
class BannerResourceConfiguration {
class BannerModuleConfiguration {

private static final String TAG = "Spring Boot";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
package tech.jhipster.lite.generator.server.springboot.broker.kafka.application;

import org.springframework.stereotype.Service;
import tech.jhipster.lite.generator.project.domain.Project;
import tech.jhipster.lite.generator.server.springboot.broker.kafka.domain.KafkaService;
import tech.jhipster.lite.docker.domain.DockerImages;
import tech.jhipster.lite.generator.server.springboot.broker.kafka.domain.KafkaModuleFactory;
import tech.jhipster.lite.module.domain.JHipsterModule;
import tech.jhipster.lite.module.domain.properties.JHipsterModuleProperties;

@Service
public class KafkaApplicationService {

private final KafkaService kafkaService;
private final KafkaModuleFactory kafkaModuleFactory;

public KafkaApplicationService(final KafkaService kafkaService) {
this.kafkaService = kafkaService;
public KafkaApplicationService(final DockerImages dockerImages) {
this.kafkaModuleFactory = new KafkaModuleFactory(dockerImages);
}

public void init(final Project project) {
kafkaService.init(project);
public JHipsterModule init(final JHipsterModuleProperties properties) {
return kafkaModuleFactory.buildModuleInit(properties);
}

public void addDummyProducerConsumer(final Project project) {
kafkaService.addDummyProducerConsumer(project);
public JHipsterModule addDummyProducerConsumer(final JHipsterModuleProperties properties) {
return kafkaModuleFactory.buildModuleDummyProducerConsumer(properties);
}

public void addAkhq(final Project project) {
kafkaService.addAkhq(project);
public JHipsterModule addAkhq(final JHipsterModuleProperties properties) {
return kafkaModuleFactory.buildModuleAkhq(properties);
}
}

This file was deleted.

Loading

0 comments on commit 72cd3d4

Please sign in to comment.