Package org.springframework.modulith
Annotation Interface ApplicationModule
Annotation to customize information of a
Modulith
module.- Author:
- Oliver Drotbohm
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The type of an application module -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionString[]
List the names of modules that the module is allowed to depend on.The human readable name of the module to be used for display and documentation purposes.Declares theApplicationModule.Type
of theApplicationModule
-
Field Summary
-
Field Details
-
OPEN_TOKEN
- See Also:
-
-
Element Details
-
displayName
String displayNameThe human readable name of the module to be used for display and documentation purposes.- Returns:
- will never be null.
- Default:
- ""
-
allowedDependencies
String[] allowedDependenciesList the names of modules that the module is allowed to depend on. Shared modules defined inModulith
/Modulithic
will be allowed, too. Names listed are local ones, unless the application has configuredModulithic.useFullyQualifiedModuleNames()
to true. Explicit references toNamedInterface
s need to be separated by a double colon::
, e.g.module::API
ifmodule
is the logical module name andAPI
is the name of the named interface.Declaring an empty array will allow no dependencies to other modules. To not restrict the dependencies at all, leave the attribute at its default value.
- Returns:
- will never be null.
- See Also:
- Default:
- {"\u00af\\_(\u30c4)_/\u00af"}
-
type
Declares theApplicationModule.Type
of theApplicationModule
- Returns:
- will never be null.
- Since:
- 1.2
- Default:
- CLOSED
-