クラス JsonMixinModuleEntries

java.lang.ObjectSE
org.springframework.boot.jackson.JsonMixinModuleEntries

public final class JsonMixinModuleEntries extends ObjectSE
考慮すべき json mixin クラスのマッピングを提供します。
導入:
3.0.0
作成者:
Stephane Nicoll
  • メソッドの詳細

    • create

      指定された JsonMixinModuleEntries.Builder を使用してインスタンスを作成します。
      パラメーター:
      mixins - ビルダーのコンシューマー
      戻り値:
      カスタマイズされたビルダーの状態を持つインスタンス。
    • scan

      public static JsonMixinModuleEntries scan(ApplicationContext context, CollectionSE<StringSE> basePackages)
      指定された basePackages@JsonMixin のクラスパスをスキャンします。
      パラメーター:
      context - 使用するアプリケーションコンテキスト
      basePackages - 考慮すべき基本パッケージ
      戻り値:
      スキャンの結果を持つインスタンス
    • doWithEntry

      public void doWithEntry(ClassLoaderSE classLoader, BiConsumerSE<ClassSE<?>,ClassSE<?>> action)
      このインスタンスによって定義された各エントリに対してアクションを実行します。クラスをそのクラス名から解決する必要がある場合は、指定された ClassLoaderSE が使用されます。
      パラメーター:
      classLoader - 必要に応じてクラス名を解決するために使用するクラスローダー
      action - mixin クラスエントリの各型で呼び出すアクション