Class ApplicationModulesExporter
java.lang.Object
org.springframework.modulith.core.util.ApplicationModulesExporter
Export the structure of
ApplicationModules as JSON.- Author:
- Oliver Drotbohm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidSimple main method to render theApplicationModulesinstance defined for the Java package given as first argument.toJson()Returns theApplicationModulesstructure as JSON String.
-
Constructor Details
-
ApplicationModulesExporter
Creates a newApplicationModulesExporterfor the givenApplicationModules.- Parameters:
modules- must not be null.
-
-
Method Details
-
main
Simple main method to render theApplicationModulesinstance defined for the Java package given as first argument.- Parameters:
args- a single-element array containing a Java package name to bootstrap anApplicationModulesinstance from.
-
toJson
Returns theApplicationModulesstructure as JSON String.- Returns:
- will never be null.
-