Class ApplicationModulesExporter

java.lang.Object
org.springframework.modulith.core.util.ApplicationModulesExporter

public class ApplicationModulesExporter extends Object
Export the structure of ApplicationModules as JSON.
Author:
Oliver Drotbohm
  • Constructor Details

  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Simple main method to render the ApplicationModules 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 an ApplicationModules instance from and an optional, second element to name a file to write the output to.
      Throws:
      IOException
    • toJson

      public String toJson()
      Returns the ApplicationModules structure as JSON String.
      Returns:
      will never be null.
    • toFullJson

      public String toFullJson()
      Returns the ApplicationModules structure as JSON String including full details, such as named interfaces etc.
      Returns:
      will never be null.