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 void
Simple main method to render theApplicationModules
instance defined for the Java package given as first argument and an optional, second element to name a file to write the output to.Returns theApplicationModules
structure as JSON String including full details, such as named interfaces etc.toJson()
Returns theApplicationModules
structure as JSON String.
-
Constructor Details
-
ApplicationModulesExporter
Creates a newApplicationModulesExporter
for the givenApplicationModules
.- Parameters:
modules
- must not be null.
-
-
Method Details
-
main
Simple main method to render theApplicationModules
instance 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 anApplicationModules
instance from and an optional, second element to name a file to write the output to.- Throws:
IOException
-
toJson
Returns theApplicationModules
structure as JSON String.- Returns:
- will never be null.
-
toFullJson
Returns theApplicationModules
structure as JSON String including full details, such as named interfaces etc.- Returns:
- will never be null.
-