Uses of Interface
org.springframework.core.io.support.SpringFactoriesLoader.FailureHandler
Packages that use SpringFactoriesLoader.FailureHandler
Package
Description
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.FailureHandlerModifier and TypeMethodDescriptionSpringFactoriesLoader.FailureHandler.handleMessage
(BiConsumer<Supplier<String>, Throwable> messageHandler) Create a newSpringFactoriesLoader.FailureHandler
that handles errors using a standard formatted message.Create a newSpringFactoriesLoader.FailureHandler
that handles errors by logging trace messages.SpringFactoriesLoader.FailureHandler.throwing()
Create a newSpringFactoriesLoader.FailureHandler
that handles errors by throwing anIllegalArgumentException
.SpringFactoriesLoader.FailureHandler.throwing
(BiFunction<String, Throwable, ? extends RuntimeException> exceptionFactory) Create a newSpringFactoriesLoader.FailureHandler
that handles errors by throwing an exception.Methods in org.springframework.core.io.support with parameters of type SpringFactoriesLoader.FailureHandlerModifier and TypeMethodDescriptionprotected <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. -
Uses of SpringFactoriesLoader.FailureHandler in org.springframework.core.mock
Methods in org.springframework.core.mock with parameters of type SpringFactoriesLoader.FailureHandlerModifier and TypeMethodDescriptionprotected <T> T
MockSpringFactoriesLoader.instantiateFactory
(String implementationName, Class<T> type, SpringFactoriesLoader.ArgumentResolver argumentResolver, SpringFactoriesLoader.FailureHandler failureHandler)