インターフェースの使用
org.springframework.core.io.support.SpringFactoriesLoader.FailureHandler
パッケージ
説明
Spring のリソース抽象化のサポートクラス。
Spring の I/O サポートのサポートクラスをテストします。
org.springframework.core.io.support 内の SpringFactoriesLoader.FailureHandler 使用
修飾子と型メソッド説明SpringFactoriesLoader.FailureHandler.handleMessage
(BiConsumerSE<SupplierSE<StringSE>, ThrowableSE> messageHandler) 標準形式のメッセージを使用してエラーを処理する新しいSpringFactoriesLoader.FailureHandler
を作成します。トレースメッセージを記録してエラーを処理する新しいSpringFactoriesLoader.FailureHandler
を作成します。SpringFactoriesLoader.FailureHandler.throwing()
IllegalArgumentException
SE をスローしてエラーを処理する新しいSpringFactoriesLoader.FailureHandler
を作成します。SpringFactoriesLoader.FailureHandler.throwing
(BiFunctionSE<StringSE, ThrowableSE, ? extends RuntimeExceptionSE> exceptionFactory) 例外をスローしてエラーを処理する新しいSpringFactoriesLoader.FailureHandler
を作成します。修飾子と型メソッド説明protected <T> T
SpringFactoriesLoader.instantiateFactory
(StringSE implementationName, ClassSE<T> type, SpringFactoriesLoader.ArgumentResolver argumentResolver, SpringFactoriesLoader.FailureHandler failureHandler) <T> ListSE<T>
SpringFactoriesLoader.load
(ClassSE<T> factoryType, SpringFactoriesLoader.ArgumentResolver argumentResolver, SpringFactoriesLoader.FailureHandler failureHandler) 構成されたクラスローダー、指定された引数リゾルバー、指定された障害ハンドラーによって提供されるカスタム障害処理を使用して、指定された型のファクトリ実装を "META-INF/spring.factories" からロードしてインスタンス化します。<T> ListSE<T>
SpringFactoriesLoader.load
(ClassSE<T> factoryType, SpringFactoriesLoader.FailureHandler failureHandler) 指定されたエラーハンドラーによって提供されるカスタムエラー処理で構成されたクラスローダーを使用して、 "META-INF/spring.factories" から指定された型のファクトリ実装を読み込んでインスタンス化します。org.springframework.core.test.io.support 内の SpringFactoriesLoader.FailureHandler 使用
修飾子と型メソッド説明protected <T> T
MockSpringFactoriesLoader.instantiateFactory
(StringSE implementationName, ClassSE<T> type, SpringFactoriesLoader.ArgumentResolver argumentResolver, SpringFactoriesLoader.FailureHandler failureHandler)