Enum Class ApplicationModule.Type

java.lang.Object
java.lang.Enum<ApplicationModule.Type>
org.springframework.modulith.ApplicationModule.Type
All Implemented Interfaces:
Serializable, Comparable<ApplicationModule.Type>, Constable
Enclosing class:
ApplicationModule

public static enum ApplicationModule.Type extends Enum<ApplicationModule.Type>
The type of an application module
Since:
1.2
Author:
Oliver Drotbohm
  • Enum Constant Details

    • CLOSED

      public static final ApplicationModule.Type 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

      public static final ApplicationModule.Type 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

      public static ApplicationModule.Type[] 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

      public static ApplicationModule.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null