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) StringReturns theApplicationModulesmetadata asMap(to be rendered as JSON).static ApplicationModulesEndpointofApplicationModules(Supplier<ApplicationModules> modules) Creates a newApplicationModulesEndpointfor the given lazily initializedApplicationModules.static ApplicationModulesEndpointprecomputed(Supplier<String> precomputed) Creates a newApplicationModulesEndpointfrom the pre-computed actuator content
-
Method Details
-
precomputed
Creates a newApplicationModulesEndpointfrom the pre-computed actuator content- Parameters:
precomputed- must not be null.- Returns:
- will never be null.
- Since:
- 1.0.3
-
ofApplicationModules
Creates a newApplicationModulesEndpointfor the given lazily initializedApplicationModules.- Parameters:
modules- must not be null.- Returns:
- will never be null.
- Since:
- 1.0.3
-
getApplicationModules
Returns theApplicationModulesmetadata asMap(to be rendered as JSON).- Returns:
- will never be null.
-