Package org.springframework.modulith
Enum Class ApplicationModule.Type
- All Implemented Interfaces:
Serializable
,Comparable<ApplicationModule.Type>
,Constable
- Enclosing class:
- ApplicationModule
The type of an application module
- Since:
- 1.2
- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationModule.Type
Returns the enum constant of this class with the specified name.static ApplicationModule.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLOSED
A closed application module exposes an API to other modules, but also allows to hide internals. Access to those internals from other modules is sanctioned. Also, closed application modules must not be part of dependency cycles.- See Also:
-
OPEN
An open application module does not hide its internals, which means that access to those from other modules is not sanctioned. They are also excluded from the cycle detection algorithm. All types contained in an open module are part of the unnamed named interface.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-