-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kafka): link module to primary for init part
- Loading branch information
1 parent
619dcec
commit b427523
Showing
14 changed files
with
51 additions
and
475 deletions.
There are no files selected for viewing
19 changes: 0 additions & 19 deletions
19
src/main/java/tech/jhipster/lite/generator/readme/application/ReadMeApplicationService.java
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
src/main/java/tech/jhipster/lite/generator/readme/domain/ReadMeDomainService.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/main/java/tech/jhipster/lite/generator/readme/domain/ReadMeService.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
...va/tech/jhipster/lite/generator/readme/infrastructure/config/ReadMeBeanConfiguration.java
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
src/main/java/tech/jhipster/lite/generator/readme/package-info.java
This file was deleted.
Oops, something went wrong.
13 changes: 10 additions & 3 deletions
13
...er/lite/generator/server/springboot/broker/kafka/application/KafkaApplicationService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...erver/springboot/broker/kafka/infrastructure/primary/rest/KafkaResourceConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package tech.jhipster.lite.generator.server.springboot.broker.kafka.infrastructure.primary.rest; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import tech.jhipster.lite.generator.server.springboot.broker.kafka.application.KafkaApplicationService; | ||
import tech.jhipster.lite.module.infrastructure.primary.JHipsterModuleApiDoc; | ||
import tech.jhipster.lite.module.infrastructure.primary.JHipsterModuleResource; | ||
|
||
@Configuration | ||
public class KafkaResourceConfiguration { | ||
|
||
private static final String TAG = "Spring Boot - Broker"; | ||
|
||
@Bean | ||
JHipsterModuleResource kafkaResourceInit(KafkaApplicationService kafkaApplicationService) { | ||
return JHipsterModuleResource | ||
.builder() | ||
.legacyUrl("/api/servers/spring-boot/brokers/kafka") | ||
.slug("springboot-kafka") | ||
.withoutProperties() | ||
.apiDoc(new JHipsterModuleApiDoc(TAG, "Add Kafka dependencies, with testcontainers")) | ||
.factory(kafkaApplicationService::init); | ||
} | ||
} |
Oops, something went wrong.