Class ApplicationModulesEndpoint
java.lang.Object
org.springframework.modulith.actuator.ApplicationModulesEndpoint
A Spring Boot actuator endpoint to expose the application module structure of a Spring Modulith based application.
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescription(package private) String
Returns theApplicationModules
metadata asMap
(to be rendered as JSON).static ApplicationModulesEndpoint
ofApplicationModules
(Supplier<ApplicationModules> modules) Creates a newApplicationModulesEndpoint
for the given lazily initializedApplicationModules
.static ApplicationModulesEndpoint
precomputed
(Supplier<String> precomputed) Creates a newApplicationModulesEndpoint
from the pre-computed actuator content
-
Method Details
-
precomputed
Creates a newApplicationModulesEndpoint
from the pre-computed actuator content- Parameters:
precomputed
- must not be null.- Returns:
- will never be null.
- Since:
- 1.1
-
ofApplicationModules
Creates a newApplicationModulesEndpoint
for the given lazily initializedApplicationModules
.- Parameters:
modules
- must not be null.- Returns:
- will never be null.
- Since:
- 1.1
-
getApplicationModules
Returns theApplicationModules
metadata asMap
(to be rendered as JSON).- Returns:
- will never be null.
-