インターフェースの使用
org.springframework.util.function.ThrowingSupplier
パッケージ
説明
Bean ファクトリの AOT サポート。
org.springframework.beans.factory
パッケージをサポートするクラス。 便利な汎用
java.util.function
ヘルパークラス。org.springframework.beans.factory.aot 内の ThrowingSupplier 使用
修飾子と型クラス説明final class
基礎となる Bean インスタンスが存在する場合、それをインスタンス化するために使用されるファクトリMethod
SE を提供する特殊化されたInstanceSupplier
。修飾子と型メソッド説明BeanInstanceSupplier.withGenerator
(ThrowingSupplier<T> generator) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。org.springframework.beans.factory.support 内の ThrowingSupplier 使用
修飾子と型インターフェース説明interface
修飾子と型メソッド説明static <T> InstanceSupplier<T>
InstanceSupplier.using
(MethodSE factoryMethod, ThrowingSupplier<T> supplier) ThrowingSupplier
からInstanceSupplier
を作成するファクトリメソッド。static <T> InstanceSupplier<T>
InstanceSupplier.using
(ThrowingSupplier<T> supplier) ThrowingSupplier
からInstanceSupplier
を作成するファクトリメソッド。org.springframework.util.function 内の ThrowingSupplier 使用
修飾子と型メソッド説明static <T> ThrowingSupplier<T>
ThrowingSupplier.of
(ThrowingSupplier<T> supplier) get()
メソッドが、指定されたラムダ式またはメソッド参照によってスローされたチェック済み例外をラップするThrowingSupplier
を作成するために使用できる、ラムダに適した便利なメソッド。static <T> ThrowingSupplier<T>
ThrowingSupplier.of
(ThrowingSupplier<T> supplier, BiFunctionSE<StringSE, ExceptionSE, RuntimeExceptionSE> exceptionWrapper) get()
メソッドが、指定されたexceptionWrapper
を使用して、スローされたチェック例外をラップするThrowingSupplier
を作成するために使用できる、ラムダに適した便利なメソッド。default ThrowingSupplier<T>
ThrowingSupplier.throwing
(BiFunctionSE<StringSE, ExceptionSE, RuntimeExceptionSE> exceptionWrapper) 修飾子と型メソッド説明static <T> ThrowingSupplier<T>
ThrowingSupplier.of
(ThrowingSupplier<T> supplier) get()
メソッドが、指定されたラムダ式またはメソッド参照によってスローされたチェック済み例外をラップするThrowingSupplier
を作成するために使用できる、ラムダに適した便利なメソッド。static <T> ThrowingSupplier<T>
ThrowingSupplier.of
(ThrowingSupplier<T> supplier, BiFunctionSE<StringSE, ExceptionSE, RuntimeExceptionSE> exceptionWrapper) get()
メソッドが、指定されたexceptionWrapper
を使用して、スローされたチェック例外をラップするThrowingSupplier
を作成するために使用できる、ラムダに適した便利なメソッド。
BeanInstanceSupplier.withGenerator(ThrowingFunction)
を推奨