列挙型クラス DependencyType

java.lang.ObjectSE
java.lang.EnumSE<DependencyType>
org.springframework.modulith.core.DependencyType
実装されたすべてのインターフェース:
SerializableSEComparableSE<DependencyType>ConstableSE

public enum DependencyType extends EnumSE<DependencyType>
ApplicationModule 間の依存関係の型。
作成者:
Oliver Drotbohm
  • 列挙型定数の詳細

    • USES_COMPONENT

      public static final DependencyType USES_COMPONENT
      モジュールがコンポーネントの依存関係によって他のモジュールに依存していること、つまり、ソースモジュールを実行するには他のモジュールをブートストラップする必要があることを示します。
    • ENTITY

      public static final DependencyType ENTITY
      モジュールが他のエンティティを参照していることを示します。
    • EVENT_LISTENER

      public static final DependencyType EVENT_LISTENER
      他のモジュールによって公開されるイベントのイベントリスナーを宣言することで、モジュールが他のモジュールに依存していることを示します。ソースモジュールを実行するためにターゲットモジュールをブートストラップする必要はありません。
    • DEFAULT

      public static final DependencyType DEFAULT
  • メソッドの詳細

    • values

      public static DependencyType[] values()
      この列挙型クラスの定数を含む配列を、宣言されている順序で返します。
      戻り値:
      この列挙型クラスの定数を宣言された順序で含む配列
    • valueOf

      public static DependencyType valueOf(StringSE name)
      指定された名前でこのクラスの列挙型定数を返します。文字列は、このクラスで列挙型定数を宣言するために使用される識別子と正確に一致する必要があります。(余分な空白文字は許可されません。)
      パラメーター:
      name - 返される列挙定数の名前。
      戻り値:
      指定された名前の列挙定数
      例外:
      IllegalArgumentExceptionSE - この列挙型クラスに指定された名前の定数がない場合
      NullPointerExceptionSE - 引数が null の場合
    • defaultOr

      DependencyType defaultOr(com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<DependencyType> supplier)
      現在の DependencyType を返すか、現在のものが DEFAULT の場合は指定されたサプライヤーから提供されたものを取得します。
      パラメーター:
      supplier - null であってはなりません。
      戻り値:
    • forParameter

      static DependencyType forParameter(com.tngtech.archunit.core.domain.JavaClass type)
    • forCodeUnit

      static DependencyType forCodeUnit(com.tngtech.archunit.core.domain.JavaCodeUnit codeUnit)
    • forDependency

      static DependencyType forDependency(com.tngtech.archunit.core.domain.Dependency dependency)
    • format

      public abstract StringSE format(FormatableType source, FormatableType target)
    • allBut

      public static StreamSE<DependencyType> allBut(CollectionSE<DependencyType> types)
      指定されたものを除くすべての DependencyType を返します。
      パラメーター:
      types - null であってはなりません。
      戻り値:
    • allBut

      public static StreamSE<DependencyType> allBut(StreamSE<DependencyType> types)
    • allBut

      public static StreamSE<DependencyType> allBut(DependencyType... types)
      指定されたものを除くすべての DependencyType を返します。
      パラメーター:
      types - null であってはなりません。
      戻り値: