Package io.micronaut.module.info.runtime
Class MicronautRuntimeModule
java.lang.Object
io.micronaut.module.info.runtime.MicronautRuntimeModule
Represents a resolved Micronaut module at runtime with parent and children references.
Instead of IDs, this runtime bean uses references to model the hierarchy and replaces
MicronautModuleInfo which uses IDs for hierarchical relationships.
-
Constructor Summary
ConstructorsConstructorDescriptionMicronautRuntimeModule(MicronautModuleInfo info, MicronautRuntimeModule parent, List<MicronautRuntimeModule> children) -
Method Summary
Modifier and TypeMethodDescriptionReturns the child modules.A description of this module.getId()The id for this module.getInfo()Returns the Maven coordinates for this module, if it can be represented so.getName()A human-readable name for this module.Returns the parent module, if any.getRoot()Returns the root module descriptor.getTags()A set of tags assigned to this module.The version of this module.toString()
-
Constructor Details
-
MicronautRuntimeModule
public MicronautRuntimeModule(MicronautModuleInfo info, MicronautRuntimeModule parent, List<MicronautRuntimeModule> children)
-
-
Method Details
-
getInfo
-
getId
The id for this module. It is recommended to use "groupId:artifactId". Do NOT include version information in the id.- Returns:
- the id for this module.
-
getName
A human-readable name for this module.- Returns:
- the name of this module
-
getDescription
A description of this module.- Returns:
- the description
-
getVersion
The version of this module.- Returns:
- the version
-
getMavenCoordinates
Returns the Maven coordinates for this module, if it can be represented so.- Returns:
- the Maven coordinates
-
getParent
Returns the parent module, if any.- Returns:
- the parent module
-
getChildren
Returns the child modules.- Returns:
- the child modules
-
getTags
A set of tags assigned to this module.- Returns:
- the set of tags for this module
-
getRoot
Returns the root module descriptor.- Returns:
- the root descriptor
-
toString
-