インターフェースの使用
org.springframework.util.function.ThrowingConsumer
パッケージ
説明
実行時の動作と同等の生成されたコードを提供するコンポーネントのサポートクラス。
Bean ファクトリの AOT サポート。
便利な汎用
java.util.function
ヘルパークラス。org.springframework.aot.generate 内の ThrowingConsumer 使用
修飾子と型メソッド説明default void
GeneratedFiles.addFile
(GeneratedFiles.Kind kind, StringSE path, ThrowingConsumer<AppendableSE> content) 指定されたGeneratedFiles.Kind
の生成されたファイルを、指定されたThrowingConsumer
に渡されたAppendable
SE に書き込まれたコンテンツとともに追加します。default void
GeneratedFiles.addResourceFile
(StringSE path, ThrowingConsumer<AppendableSE> content) default void
GeneratedFiles.addSourceFile
(StringSE className, ThrowingConsumer<AppendableSE> content) org.springframework.beans.factory.aot 内の ThrowingConsumer 使用
修飾子と型メソッド説明<T> void
AutowiredFieldValueResolver.resolve
(RegisteredBean registeredBean, ThrowingConsumer<T> action) 指定された登録済み Bean のフィールドを解決し、指定されたアクションに提供します。void
AutowiredMethodArgumentsResolver.resolve
(RegisteredBean registeredBean, ThrowingConsumer<AutowiredArguments> action) 指定された登録済み Bean のメソッド引数を解決し、指定されたアクションに提供します。org.springframework.util.function 内の ThrowingConsumer 使用
修飾子と型メソッド説明static <T> ThrowingConsumer<T>
ThrowingConsumer.of
(ThrowingConsumer<T> consumer) accept(Object)
メソッドが、指定されたラムダ式またはメソッド参照によってスローされたチェック済み例外をラップするThrowingConsumer
を作成するために使用できる、ラムダに適した便利なメソッド。static <T> ThrowingConsumer<T>
ThrowingConsumer.of
(ThrowingConsumer<T> consumer, BiFunctionSE<StringSE, ExceptionSE, RuntimeExceptionSE> exceptionWrapper) accept(Object)
メソッドが、指定されたexceptionWrapper
を使用して、スローされたチェック済み例外をラップするThrowingConsumer
を作成するために使用できる、ラムダに適した便利なメソッド。default ThrowingConsumer<T>
ThrowingConsumer.throwing
(BiFunctionSE<StringSE, ExceptionSE, RuntimeExceptionSE> exceptionWrapper) 修飾子と型メソッド説明static <T> ThrowingConsumer<T>
ThrowingConsumer.of
(ThrowingConsumer<T> consumer) accept(Object)
メソッドが、指定されたラムダ式またはメソッド参照によってスローされたチェック済み例外をラップするThrowingConsumer
を作成するために使用できる、ラムダに適した便利なメソッド。static <T> ThrowingConsumer<T>
ThrowingConsumer.of
(ThrowingConsumer<T> consumer, BiFunctionSE<StringSE, ExceptionSE, RuntimeExceptionSE> exceptionWrapper) accept(Object)
メソッドが、指定されたexceptionWrapper
を使用して、スローされたチェック済み例外をラップするThrowingConsumer
を作成するために使用できる、ラムダに適した便利なメソッド。