Class ApplicationModuleMetadata

java.lang.Object
org.springframework.modulith.runtime.autoconfigure.ApplicationModuleMetadata

class ApplicationModuleMetadata extends Object
An abstraction for the data captured in the application module metadata file (typically "META-INF/spring-modulith/application-modules.json").
Since:
1.4
Author:
Oliver Drotbohm
See Also:
  • ApplicationModulesExporter.DEFAULT_LOCATION
  • Constructor Details

    • ApplicationModuleMetadata

      ApplicationModuleMetadata()
  • Method Details

    • of

      public static ApplicationModuleMetadata of(Resource resource)
      Creates a new ApplicationModuleMetadata for the given Resource.
      Parameters:
      resource - must not be null.
      Returns:
      will never be null.
    • isPresent

      public boolean isPresent()
      Returns whether the metadata is present at all.
    • getIdentifiers

      public List<org.springframework.modulith.core.ApplicationModuleIdentifier> getIdentifiers()
      Returns all ApplicationModuleIdentifiers.
      Returns:
      will never be null.
    • getInitializerTypeNames

      public List<String> getInitializerTypeNames()
      Returns the names of the types registered as ApplicationModuleInitializer.
      Returns:
      will never be null.