# Uses of Interface
org.springframework.core.io.support.SpringFactoriesLoader.FailureHandler

Packages that use SpringFactoriesLoader.FailureHandler
Package
Description
org.springframework.core.io.support
Support classes for Spring's resource abstraction.

## Uses of SpringFactoriesLoader.FailureHandler in org.springframework.core.io.support

Methods in org.springframework.core.io.support that return SpringFactoriesLoader.FailureHandler
Modifier and Type
Method
Description
`static SpringFactoriesLoader.FailureHandler`
SpringFactoriesLoader.FailureHandler.`handleMessage(BiConsumer<Supplier<String>,Throwable> messageHandler)`
Create a new `SpringFactoriesLoader.FailureHandler` that handles errors using a standard formatted message.
`static SpringFactoriesLoader.FailureHandler`
SpringFactoriesLoader.FailureHandler.`logging(org.apache.commons.logging.Log logger)`
Create a new `SpringFactoriesLoader.FailureHandler` that handles errors by logging trace messages.
`static SpringFactoriesLoader.FailureHandler`
SpringFactoriesLoader.FailureHandler.`throwing()`
Create a new `SpringFactoriesLoader.FailureHandler` that handles errors by throwing an `IllegalArgumentException`.
`static SpringFactoriesLoader.FailureHandler`
SpringFactoriesLoader.FailureHandler.`throwing(BiFunction<String,Throwable,? extends RuntimeException> exceptionFactory)`
Create a new `SpringFactoriesLoader.FailureHandler` that handles errors by throwing an exception.
Methods in org.springframework.core.io.support with parameters of type SpringFactoriesLoader.FailureHandler
Modifier and Type
Method
Description
`protected <T> T`
SpringFactoriesLoader.`instantiateFactory(String implementationName, Class<T> type, SpringFactoriesLoader.ArgumentResolver argumentResolver, SpringFactoriesLoader.FailureHandler failureHandler)`
`<T> List<T>`
SpringFactoriesLoader.`load(Class<T> factoryType, SpringFactoriesLoader.ArgumentResolver argumentResolver, SpringFactoriesLoader.FailureHandler failureHandler)`
Load and instantiate the factory implementations of the given type from "META-INF/spring.factories", using the configured class loader, the given argument resolver, and custom failure handling provided by the given failure handler.
`<T> List<T>`
SpringFactoriesLoader.`load(Class<T> factoryType, SpringFactoriesLoader.FailureHandler failureHandler)`
Load and instantiate the factory implementations of the given type from "META-INF/spring.factories", using the configured class loader with custom failure handling provided by the given failure handler.