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 allApplicationModuleIdentifier
s.Returns the names of the types registered asApplicationModuleInitializer
.boolean
Returns whether the metadata is present at all.static ApplicationModuleMetadata
Creates a newApplicationModuleMetadata
for the givenResource
.
-
Constructor Details
-
ApplicationModuleMetadata
ApplicationModuleMetadata()
-
-
Method Details
-
of
Creates a newApplicationModuleMetadata
for 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 allApplicationModuleIdentifier
s.- Returns:
- will never be null.
-
getInitializerTypeNames
Returns the names of the types registered asApplicationModuleInitializer
.- Returns:
- will never be null.
-