Class ApplicationModuleMetadata
java.lang.Object
org.springframework.modulith.runtime.autoconfigure.ApplicationModuleMetadata
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns allApplicationModuleIdentifiers.Returns the names of the types registered asApplicationModuleInitializer.booleanReturns whether the metadata is present at all.static ApplicationModuleMetadataCreates a newApplicationModuleMetadatafor the givenResource.
-
Constructor Details
-
ApplicationModuleMetadata
ApplicationModuleMetadata()
-
-
Method Details
-
of
Creates a newApplicationModuleMetadatafor the givenResource.- Parameters:
resource- must not be null.- Returns:
- will never be null.
-
isPresent
public boolean isPresent()Returns whether the metadata is present at all. -
getIdentifiers
Returns allApplicationModuleIdentifiers.- Returns:
- will never be null.
-
getInitializerTypeNames
Returns the names of the types registered asApplicationModuleInitializer.- Returns:
- will never be null.
-