GH-119 - Improve rendering of application modules structure as JSON.

Introduced ApplicationModulesExporter to render an ApplicationModules instances as JSON directly. To avoid a dependency to a JSON library and as we only have to be able to render rather simple arrangements, we just build up the JSON string ourselves.

ApplicationModulesEndpoint now caches the structure calculated once to avoid repeated work.
This commit is contained in:
Oliver Drotbohm
2023-01-18 18:31:56 +01:00
parent 9082ca27bb
commit 090ddc6fba
6 changed files with 254 additions and 58 deletions

View File

@@ -52,12 +52,20 @@
<artifactId>spring-tx</artifactId>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jgrapht</groupId>
<artifactId>jgrapht-core</artifactId>