Uses of Interface
org.springframework.core.io.support.SpringFactoriesLoader.FailureHandler
Package
Description
Support classes for Spring's resource abstraction.
Test support classes for Spring's I/O support.
-
Uses of SpringFactoriesLoader.FailureHandler in org.springframework.core.io.support
Modifier 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.Modifier 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.test.io.support
Modifier and TypeMethodDescriptionprotected <T> T
MockSpringFactoriesLoader.instantiateFactory
(String implementationName, Class<T> type, SpringFactoriesLoader.ArgumentResolver argumentResolver, SpringFactoriesLoader.FailureHandler failureHandler)