Class ApplicationModulesExporter
java.lang.Object
org.springframework.modulith.core.util.ApplicationModulesExporter
Export the structure of
ApplicationModules as JSON.- Author:
- Oliver Drotbohm
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidSimple main method to render theApplicationModulesinstance defined for the Java package given as first argument and an optional, second element to name a file to write the output to.Returns theApplicationModulesstructure as JSON String including full details, such as named interfaces etc.toJson()Returns theApplicationModulesstructure as JSON String.
-
Field Details
-
DEFAULT_LOCATION
- See Also:
-
-
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 and an optional, second element to name a file to write the output to.- Parameters:
args- an array containing a Java package name to bootstrap anApplicationModulesinstance from and an optional, second element to name a file to write the output to.- Throws:
IOException
-
toJson
Returns theApplicationModulesstructure as JSON String.- Returns:
- will never be null.
-
toFullJson
Returns theApplicationModulesstructure as JSON String including full details, such as named interfaces etc.- Returns:
- will never be null.
-