インターフェース ContextConsumer<C extends ApplicationContext>

型パラメーター:
C - アプリケーションコンテキスト型
関数インターフェース:
これは関数インターフェースであるため、ラムダ式またはメソッド参照の割り当てターゲットとして使用できます。

@FunctionalInterfaceSE public interface ContextConsumer<C extends ApplicationContext>
(チェック済み)例外をスローする機能を持つ ApplicationContext の処理に使用されるコールバックインターフェース。
導入:
2.0.0
作成者:
Stephane Nicoll, Andy Wilkinson
関連事項:
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    void
    accept(C context)
    提供された context でこの操作を実行します。
    andThen(ContextConsumer<? super C> after)
    この操作に続いて after 操作を順番に実行する合成 ContextConsumer を返します。
  • メソッドの詳細

    • accept

      void accept(C context) throws ThrowableSE
      提供された context でこの操作を実行します。
      パラメーター:
      context - 消費するアプリケーションコンテキスト
      例外:
      ThrowableSE - アサーションで発生する可能性のある例外
    • andThen

      default ContextConsumer<C> andThen(ContextConsumer<? super C> after)
      この操作に続いて after 操作を順番に実行する合成 ContextConsumer を返します。
      パラメーター:
      after - この操作の後に実行する操作
      戻り値:
      この操作に続いて after 操作を順番に実行する合成 ContextConsumer 
      導入:
      2.6.0